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

perf: faster startup #1528

Merged
merged 1 commit into from
Aug 29, 2018
Merged

perf: faster startup #1528

merged 1 commit into from
Aug 29, 2018

Conversation

alanshaw
Copy link
Member

CLI daemon on (over HTTP API)

Command: ipfs cat QmfM2r8seH2GiRaC4esTjeraXEachRt8ZsSeGaWTPLyMoG

For talking to the daemon over the HTTP API there should be no need to require IPFS core.

I noticed that the CLI daemon command required the HTTP API, which requires Hapi, and IPFS core itself. Similarly, the init command also requires IPFS core itself.

Moving these requires inline avoids this.

Before (> 1200ms total):

screen shot 2018-08-28 at 21 48 01

After (< 600ms total):

screen shot 2018-08-28 at 21 48 04

License: MIT
Signed-off-by: Alan Shaw <alan@tableflip.io>
@ghost ghost assigned alanshaw Aug 28, 2018
@ghost ghost added the status/in-progress In progress label Aug 28, 2018
Copy link
Member

@vasco-santos vasco-santos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! 💪

@alanshaw alanshaw changed the title [WIP] perf: faster startup perf: faster startup Aug 29, 2018
@alanshaw alanshaw merged commit f339eba into master Aug 29, 2018
@alanshaw alanshaw deleted the perf/faster-startup branch August 29, 2018 09:05
@ghost ghost removed the status/in-progress In progress label Aug 29, 2018
@alanshaw alanshaw mentioned this pull request Sep 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants