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

Refactor to classes #34

Merged
merged 34 commits into from
Oct 18, 2016
Merged

Refactor to classes #34

merged 34 commits into from
Oct 18, 2016

Commits on Oct 9, 2016

  1. Configuration menu
    Copy the full SHA
    5877bd3 View commit details
    Browse the repository at this point in the history

Commits on Oct 14, 2016

  1. Fix test-opt script

    Avaq committed Oct 14, 2016
    Configuration menu
    Copy the full SHA
    6eb1fe5 View commit details
    Browse the repository at this point in the history

Commits on Oct 15, 2016

  1. Refactor Future.cache

    * Improve performance by 90% (almost twice as fast)
    * Fix cancellation semantics (per-fork cancellation)
    * Improve toString and inspect to show the state (similar to Promises)
    Avaq committed Oct 15, 2016
    Configuration menu
    Copy the full SHA
    5727d43 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    36bd594 View commit details
    Browse the repository at this point in the history
  3. Fix bench/curry

    Avaq committed Oct 15, 2016
    Configuration menu
    Copy the full SHA
    ea78cd8 View commit details
    Browse the repository at this point in the history
  4. Refactor chainRej

    * Improves performance by about 10%
    * Improves toString
    Avaq committed Oct 15, 2016
    Configuration menu
    Copy the full SHA
    56144ca View commit details
    Browse the repository at this point in the history
  5. Correct a typo

    Avaq committed Oct 15, 2016
    Configuration menu
    Copy the full SHA
    3e893c8 View commit details
    Browse the repository at this point in the history
  6. Refactor mapRej

    * Improve performance by about 10%
    * Improve toString
    Avaq committed Oct 15, 2016
    Configuration menu
    Copy the full SHA
    0a43aa3 View commit details
    Browse the repository at this point in the history
  7. Refactor Future.bimap

    * Improve performance by about 10%
    * Improve toString
    Avaq committed Oct 15, 2016
    Configuration menu
    Copy the full SHA
    f144ccc View commit details
    Browse the repository at this point in the history
  8. Fix inspect methods

    Avaq committed Oct 15, 2016
    Configuration menu
    Copy the full SHA
    471ece7 View commit details
    Browse the repository at this point in the history
  9. Refactor Future.swap

    Avaq committed Oct 15, 2016
    Configuration menu
    Copy the full SHA
    b7294fa View commit details
    Browse the repository at this point in the history
  10. Add race benchmark

    Avaq committed Oct 15, 2016
    Configuration menu
    Copy the full SHA
    f4bfa3d View commit details
    Browse the repository at this point in the history
  11. Refactor Future.race

    * Improve performance by about 300% overall
    * Improve performance by about 3700% in the case where left
      resolves synchronously
    * Improve toString
    Avaq committed Oct 15, 2016
    Configuration menu
    Copy the full SHA
    aa6a3a7 View commit details
    Browse the repository at this point in the history
  12. Add Future.or benchmark

    Avaq committed Oct 15, 2016
    Configuration menu
    Copy the full SHA
    e34f1a6 View commit details
    Browse the repository at this point in the history
  13. Refactor Future.or

    * Improve performance by 10-40%
    * Improve toString
    * When left resolves before right, right will be automatically cancelled
    Avaq committed Oct 15, 2016
    Configuration menu
    Copy the full SHA
    7041f53 View commit details
    Browse the repository at this point in the history
  14. Refactor Future.fold

    Avaq committed Oct 15, 2016
    Configuration menu
    Copy the full SHA
    becca2d View commit details
    Browse the repository at this point in the history
  15. Use normal toString semantics for CachedFuture

    But keep inspect the same
    Avaq committed Oct 15, 2016
    Configuration menu
    Copy the full SHA
    1e5482e View commit details
    Browse the repository at this point in the history
  16. Refactor Future.hook

    Now when a hooked Future is cancelled, its disposal Future is
    still executed, and immediately cancelled as well. This creates
    a much better chance for resources to be disposed, and allows
    a developer to forcefully get rid of resources in a much more
    logical place: The disposal cancellation function instead of
    the consumpsion cancellation function.
    Also improve toString and probably performance.
    Avaq committed Oct 15, 2016
    Configuration menu
    Copy the full SHA
    6815f14 View commit details
    Browse the repository at this point in the history
  17. Refactor Future.finally

    Impoves toString
    Avaq committed Oct 15, 2016
    Configuration menu
    Copy the full SHA
    f86f468 View commit details
    Browse the repository at this point in the history

Commits on Oct 16, 2016

  1. Move stuff around

    Avaq committed Oct 16, 2016
    Configuration menu
    Copy the full SHA
    05f54e1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b17a52a View commit details
    Browse the repository at this point in the history
  3. Add Future.parallel benchmark

    Avaq committed Oct 16, 2016
    Configuration menu
    Copy the full SHA
    2cd49ef View commit details
    Browse the repository at this point in the history
  4. Performance optimize Future.parallel

    An average increase in speed of 30% with cases ranging
    between 10% and 100%
    Avaq committed Oct 16, 2016
    Configuration menu
    Copy the full SHA
    14157c6 View commit details
    Browse the repository at this point in the history
  5. Fix a bug in CachedFuture

    Avaq committed Oct 16, 2016
    Configuration menu
    Copy the full SHA
    72bc0dc View commit details
    Browse the repository at this point in the history

Commits on Oct 17, 2016

  1. Restore code coverage

    Avaq committed Oct 17, 2016
    Configuration menu
    Copy the full SHA
    b223ff8 View commit details
    Browse the repository at this point in the history

Commits on Oct 18, 2016

  1. Configuration menu
    Copy the full SHA
    2ca9baf View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    51f8930 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ee9e247 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    904c1be View commit details
    Browse the repository at this point in the history
  5. Improve code for Future.encaseN functions

    * Use switch-statements instead of if-statements for argument length
    * Do recursion via the name of the function rather than its location
    * Move the type-check to after currying, so it doesn't happen multiple times
    Avaq committed Oct 18, 2016
    Configuration menu
    Copy the full SHA
    405bf3c View commit details
    Browse the repository at this point in the history
  6. Use named states in ChainRec

    Avaq committed Oct 18, 2016
    Configuration menu
    Copy the full SHA
    27afcc7 View commit details
    Browse the repository at this point in the history
  7. Use named states in CachedFuture

    Also improve performance by about 5%
    Avaq committed Oct 18, 2016
    Configuration menu
    Copy the full SHA
    a4edcbf View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    fabb2fc View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    ebc46b0 View commit details
    Browse the repository at this point in the history