Repository navigation
enumerate registry values - #9
Conversation
|
A quick comparison of the speed-up between our old way of spawning $ yarn benchmark
yarn run v1.3.2
$ ts-node benchmarks/reg.ts
reg.exe x 60.46 ops/sec ±1.91% (66 runs sampled)
registry.js x 1,187 ops/sec ±7.97% (84 runs sampled)
Done in 15.34s. |
|
|
||
| if (retCode != ERROR_SUCCESS) { | ||
| char* errorMessage = NULL; | ||
| sprintf(errorMessage, "RegQueryInfoKey failed - exit code: '%d'", retCode); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
|
||
| if (openKey != ERROR_SUCCESS) { | ||
| char* errorMessage = NULL; | ||
| sprintf(errorMessage, "RegOpenKeyEx failed - exit code: '%d'", openKey); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Fixes #1