Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

perf: faster startup time #1542

Merged
merged 6 commits into from
Sep 12, 2018
Merged

Commits on Sep 12, 2018

  1. feat: adds waitFor utility

    Calls back when async func returns true.
    
    License: MIT
    Signed-off-by: Alan Shaw <alan@tableflip.io>
    alanshaw committed Sep 12, 2018
    Configuration menu
    Copy the full SHA
    53035e1 View commit details
    Browse the repository at this point in the history
  2. fix: appease the linter

    License: MIT
    Signed-off-by: Alan Shaw <alan@tableflip.io>
    alanshaw committed Sep 12, 2018
    Configuration menu
    Copy the full SHA
    95d0007 View commit details
    Browse the repository at this point in the history
  3. chore: cleanup temp repos after tests

    License: MIT
    Signed-off-by: Alan Shaw <alan@tableflip.io>
    alanshaw committed Sep 12, 2018
    Configuration menu
    Copy the full SHA
    5c3f531 View commit details
    Browse the repository at this point in the history
  4. chore: appease linter

    License: MIT
    Signed-off-by: Alan Shaw <alan@tableflip.io>
    alanshaw committed Sep 12, 2018
    Configuration menu
    Copy the full SHA
    d38e701 View commit details
    Browse the repository at this point in the history
  5. perf: faster startup time

    I noticed that libp2p takes over 200ms to require. When using the CLI with no daemon we never start the IPFS node so libp2p is required but unused. This PR lazily requires libp2p when start is called, which means that if the node is never started, you do not suffer the 200ms it takes to require the library.
    
    License: MIT
    Signed-off-by: Alan Shaw <alan@tableflip.io>
    alanshaw committed Sep 12, 2018
    Configuration menu
    Copy the full SHA
    84c29ba View commit details
    Browse the repository at this point in the history
  6. fix: revert increase timeout

    License: MIT
    Signed-off-by: Alan Shaw <alan@tableflip.io>
    alanshaw committed Sep 12, 2018
    Configuration menu
    Copy the full SHA
    8d5de85 View commit details
    Browse the repository at this point in the history