Skip to content

Conversation

@matthewleon
Copy link
Contributor

addresses #2

Did not put in option to run GC during/after benchmarks... Which seems less important, but maybe something to do in the future.

@matthewleon
Copy link
Contributor Author


-- | Force garbage collection.
-- | Requires node to be run with the --force-gc flag.
foreign import gc :: forall eff. eff () Unit
Copy link
Contributor

@paf31 paf31 Jun 11, 2017

Choose a reason for hiding this comment

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

Why not forall eff. Eff eff Unit?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Usually the type checker protects me from my sloppiness... But not always :)

@matthewleon
Copy link
Contributor Author

@paf31 Just a gentle ping on this, as I've been using this lately with List changes, and I believe I've addressed the issue you signaled above.

foreign import hrTime :: forall eff. EffFn1 eff (Array Int) (Array Int)

-- | Force garbage collection.
-- | Requires node to be run with the --force-gc flag.
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe this comment should be moved to the top level?

Copy link
Contributor

Choose a reason for hiding this comment

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

Tracking this in #21

@paf31 paf31 merged commit 56f6300 into purescript:master Nov 24, 2017
@paf31
Copy link
Contributor

paf31 commented Nov 24, 2017

Thanks!

@paf31
Copy link
Contributor

paf31 commented Nov 24, 2017

We can change the docs later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants