Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add $scalar->path to turn make a Path::Tiny object from $scalar. #247

Merged
merged 1 commit into from Jun 11, 2013

Conversation

schwern
Copy link
Contributor

@schwern schwern commented Mar 23, 2013

For #229

This is a very basic implementation. There's lots we can add to Path::Tiny which can come later.

The load time of Path::Tiny is up to 25% of perl5i, so we must load it
on demand.

I benchmarked the cost of "require Path::Tiny" every time and it
came out to be a significant difference for object construction.

The docs are very understated for what impact on the ease of
file manipulation this has.

Path::Tiny has some useful class methods. cwd, rootdir, tempfile
and tempdir. There's no way to access them through perl5i, you
have to use Path::Tiny directly. This is less than ideal, but
ok for now.

The load time of Path::Tiny is up to 25% of perl5i, so we must load it
on demand.

I benchmarked the cost of "require Path::Tiny" every time and it
came out to be a significant difference for object construction.

The docs are very understated for what impact on the ease of
file manipulation this has.

Path::Tiny has some useful class methods.  cwd, rootdir, tempfile
and tempdir.  There's no way to access them through perl5i, you
have to use Path::Tiny directly.  This is less than ideal, but
ok for now.
schwern added a commit that referenced this pull request Jun 11, 2013
Add $scalar->path to turn make a Path::Tiny object from $scalar.
@schwern schwern merged commit 29ec159 into master Jun 11, 2013
@schwern schwern mentioned this pull request Jun 11, 2013
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.

None yet

1 participant