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

Windows performance:compare #2450

Merged
merged 3 commits into from Oct 27, 2022

Conversation

janbiedermann
Copy link
Member

No description provided.

@janbiedermann janbiedermann force-pushed the windows_performance_compare branch 3 times, most recently from 1ae9fcd to 9235af4 Compare October 21, 2022 02:25
@janbiedermann janbiedermann force-pushed the windows_performance_compare branch 2 times, most recently from a58e52c to e0dbd6e Compare October 21, 2022 02:36
@janbiedermann
Copy link
Member Author

Now ready

@hmdne hmdne force-pushed the windows_performance_compare branch from f7a9eac to 0f480dc Compare October 26, 2022 05:40
@hmdne hmdne added this to the v1.6 milestone Oct 26, 2022
Copy link
Member

@elia elia left a comment

Choose a reason for hiding this comment

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

@janbiedermann thanks for this PR! Looks great, just left a couple of comments for minor changes, can you please try them on windows?

Meanwhile I'm pre-approving 👍

@@ -15,7 +15,7 @@ module Util
# @param str [String] string to minify
# @return [String]
def uglify(source, mangle: false)
sh "bin/yarn -s run terser -c #{'-m' if mangle}", data: source
sh "#{'ruby ' if Gem.win_platform?}bin/yarn -s run terser -c #{'-m' if mangle}", data: source
Copy link
Member

Choose a reason for hiding this comment

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

nit: we might want to use Gem.ruby here, but not necessary

Comment on lines +3 to +4
require_relative "#{__dir__}/../lib/opal/util"
require_relative "#{__dir__}/../lib/opal/os"
Copy link
Member

Choose a reason for hiding this comment

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

nit: the initial "#{__dir__}/ might not be necessary

Copy link
Member Author

Choose a reason for hiding this comment

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

I had to use dir so that it would use the patched version

@@ -1,4 +1,8 @@
require_relative "#{__dir__}/../lib/opal/os"
Copy link
Member

Choose a reason for hiding this comment

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

nit: also here using dir shouldn't be necessary

Copy link
Member Author

Choose a reason for hiding this comment

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

I had to use dir so that it would use the patched version

@janbiedermann
Copy link
Member Author

@hmdne OS abstraction is working great

@hmdne hmdne merged commit 8ae6198 into opal:master Oct 27, 2022
@janbiedermann janbiedermann deleted the windows_performance_compare branch October 27, 2022 02:17
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

3 participants