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

Some performance tweaks #19

Closed
wants to merge 7 commits into from
Closed

Some performance tweaks #19

wants to merge 7 commits into from

Commits on Aug 4, 2012

  1. Switch MD5 with City

    vmg committed Aug 4, 2012
    Copy the full SHA
    82a791d View commit details
    Browse the repository at this point in the history
  2. ...and this is how you resize a file in Unix

    "The truncate() and ftruncate() functions cause the regular file named
    by path or referenced by fd to be truncated to a size of precisely
    length bytes.
    
    If the file previously was larger than this size, the extra data is
    lost. If the file previously was shorter, it is extended, and the
    extended part reads as null bytes ('\0')."
    vmg committed Aug 4, 2012
    Copy the full SHA
    d2397a4 View commit details
    Browse the repository at this point in the history
  3. Add support for binary keys

    There's no need for the keys to be NULL-terminated... That's so from the
    90s!
    
    Also, note that Python strings (and pretty much any dynamic language)
    already keep length information. This will save us quite a few
    `strlen` calls.
    vmg committed Aug 4, 2012
    Copy the full SHA
    03155a0 View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    21ae03e View commit details
    Browse the repository at this point in the history
  5. Documentation is nice!

    vmg committed Aug 4, 2012
    Copy the full SHA
    f88ec1c View commit details
    Browse the repository at this point in the history
  6. Oops! Indentation!

    vmg committed Aug 4, 2012
    Copy the full SHA
    cc4b676 View commit details
    Browse the repository at this point in the history
  7. Better seeds?

    vmg committed Aug 4, 2012
    Copy the full SHA
    86a865c View commit details
    Browse the repository at this point in the history