Skip to content

Thoughts on performance #20

Open
Open
@lukepalmer

Description

@lukepalmer

This is partly a note to self and partly a reference should anyone else be interested.

Operations per second for an Orewa client is somewhat low compared to what Redis can do. Client performance appears to be dominated by caml_modify calls which I believe is related to the parser making many trips into the Async scheduler as it reads each bit of a protocol response from a pipe.

A way to improve this would be to use the lower level API for TCP connections that exposes a Bigstring.t via an async-driven callback. This should allow parsing of a response within a single async cycle instead of many.

I may look at this someday if I need it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions