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

require "unicode_utils" takes a very long time #6

Open
retorquere opened this issue May 24, 2013 · 3 comments
Open

require "unicode_utils" takes a very long time #6

retorquere opened this issue May 24, 2013 · 3 comments

Comments

@retorquere
Copy link

I've installed unicode_utils on R2.0 on windows 7 x64. When I execute this:

require "time"
beginning_time = Time.now
require "unicode_utils"
end_time = Time.now
puts "Time elapsed #{(end_time - beginning_time)} seconds"

it outputs "Time elapsed 94.805422 seconds" (or something to that effect -- times vary between 93 and 101 seconds"

@G0dwin
Copy link

G0dwin commented Apr 13, 2014

I think this issue is windows specific, I am also experiencing it on Win8.1. I have been able to narrow the problem down to /lib/unicode_utils/charname.rb:9 where the NAME_MAP is loaded.

@eikes
Copy link

eikes commented Oct 8, 2014

I can confirm this problem on windows machines:

Windows 7: 125 seconds
Windows Server 2008 R2: 154 seconds

@danowar2k
Copy link

When the "names" files is read and put into a map, on Windows 7 64 Bit using mintty this is very very slow, to the point I stopped the program because I thought it hanged.

def self.read_names(filename)

danowar2k added a commit to danowar2k/unicode_utils that referenced this issue Jan 17, 2019
… in the whole line then split the line accordingly
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

No branches or pull requests

4 participants