Forwarded from Alexander N
А почему итераторы в gcc медленнее, чем у шланга/студии?
Forwarded from Till Schneider
Мы собрали код clang/gcc с отладочной информацией на Intel Pentium и сравнили скорость прохода цикла по итераторам с версией, собранной с помощью visual studio в release на Intel core i7
Forwarded from Yuri
Блин, насколько же решение с регекспом проще выглядит. Ток лень замерять насколько медленнее :)
irb> def word_count(str)
irb> str.scan(/\w[\w\-`]*/).size
irb> end
=> :word_count
irb> word_count('WARNING: Use --illegal-access=warn to enable warnings')
=> 7
irb> word_count('tensorflow - Using /tmp/tfhub to cache modules.')
=> 7
irb> word_count('I`ve seen this message on 4chan')
=> 6
irb> def word_count(str)
irb> str.scan(/\w[\w\-`]*/).size
irb> end
=> :word_count
irb> word_count('WARNING: Use --illegal-access=warn to enable warnings')
=> 7
irb> word_count('tensorflow - Using /tmp/tfhub to cache modules.')
=> 7
irb> word_count('I`ve seen this message on 4chan')
=> 6
Forwarded from Boris Vinogradov
сука в перле флаги ещё более упоротые чем в бидоне
Forwarded from Ruben
[mike@localhost ~]$ shutter
"glob" is not exported by the File::Glob module
Can't continue after import errors at /usr/bin/shutter line 57.
BEGIN failed--compilation aborted at /usr/bin/shutter line 57.
"glob" is not exported by the File::Glob module
Can't continue after import errors at /usr/bin/shutter line 57.
BEGIN failed--compilation aborted at /usr/bin/shutter line 57.