Skip to content
This repository has been archived by the owner on Jun 10, 2018. It is now read-only.

Optimize: Tempfile management #149

Merged
merged 1 commit into from
Jun 5, 2014
Merged

Optimize: Tempfile management #149

merged 1 commit into from
Jun 5, 2014

Conversation

josh
Copy link
Contributor

@josh josh commented Jun 5, 2014

Tempfile.open has some finalizer and unlinking overhead that was don't actually use since we close the file right away. Tempfile.create was added in Ruby 2.1 to help, but it isn't widely available yet. Copy pasta some of its internals here.

@josh josh self-assigned this Jun 5, 2014
josh added a commit that referenced this pull request Jun 5, 2014
@josh josh merged commit 397d61c into master Jun 5, 2014
@josh josh deleted the fast-tmpfile branch June 5, 2014 20:11
@josh josh removed their assignment Mar 12, 2015
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.

1 participant