Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add optional allocator #344

Merged
merged 5 commits into from
Jul 16, 2020
Merged

add optional allocator #344

merged 5 commits into from
Jul 16, 2020

Commits on Mar 14, 2020

  1. add optional AllocationModeOptimized

    after processing a packet we keep in memory the allocated slices and we reuse
    them for new packets.
    Slices are allocated in:
    
    - recvPacket
    - when we receive a sshFxpReadPacket (downloads)
    
    The allocated slices have a fixed size = maxMsgLength.
    
    Allocated slices are referenced to the request order id and are marked for reuse
    after a request is served in maybeSendPackets.
    
    The allocator is added to the packetManager struct and it is cleaned at the end
    of the Serve() function.
    
    This allocation mode is optional and disabled by default
    drakkan committed Mar 14, 2020
    Configuration menu
    Copy the full SHA
    3f969fc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7168541 View commit details
    Browse the repository at this point in the history

Commits on Mar 18, 2020

  1. the allocator can now be enabled per request

    Other minor changes as per review comments
    drakkan committed Mar 18, 2020
    Configuration menu
    Copy the full SHA
    1f178f9 View commit details
    Browse the repository at this point in the history

Commits on Mar 19, 2020

  1. remove NewRequestServerWithOptions

    we can keep compatibility removing the error return value from
    RequestServerOption
    drakkan committed Mar 19, 2020
    Configuration menu
    Copy the full SHA
    2fc6848 View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2020

  1. cleanPath: use path.IsAbs after converting ToSlash

    we need a POSIX path filepath.IsAbs can give unexpected results on Windows
    drakkan committed Jul 5, 2020
    Configuration menu
    Copy the full SHA
    118ca57 View commit details
    Browse the repository at this point in the history