havenwood changed the topic of #ruby to: Ruby 3.3.4 (3.4.0-preview1) https://www.ruby-lang.org | Logs https://libera.irclog.whitequark.org/ruby
mtm has quit [Ping timeout: 252 seconds]
mtm has joined #ruby
D2w05 has joined #ruby
szkl has joined #ruby
Rounin has quit [Ping timeout: 244 seconds]
Rounin has joined #ruby
D2w05 has quit [Ping timeout: 276 seconds]
brokkoli_origin has quit [Ping timeout: 248 seconds]
brokkoli_origin has joined #ruby
Fridtjof has quit [Quit: ZNC - http://znc.in]
Fridtjof has joined #ruby
D2w05 has joined #ruby
sympt has quit [Ping timeout: 260 seconds]
johnjaye has quit [Ping timeout: 265 seconds]
johnjaye has joined #ruby
Furai has quit [Quit: WeeChat 4.3.5]
cappy has joined #ruby
Furai has joined #ruby
eddof13 has joined #ruby
eddof13 has quit [Client Quit]
szkl has quit [Quit: Connection closed for inactivity]
Linux_Kerio has joined #ruby
johnjaye has quit [Ping timeout: 252 seconds]
cappy has quit [Quit: Leaving]
u0_a115 has joined #ruby
u0_a115 has quit [Remote host closed the connection]
D2w05 has quit [Ping timeout: 260 seconds]
jmjl- has quit [Read error: Connection reset by peer]
jmjl has joined #ruby
TCZ has joined #ruby
trillion_exabyte has quit [Ping timeout: 276 seconds]
TomyLobo has joined #ruby
wyclif has joined #ruby
johnjaye has joined #ruby
mtm has quit [Ping timeout: 252 seconds]
mtm has joined #ruby
TCZ has quit []
sylario has joined #ruby
szkl has joined #ruby
lembron has joined #ruby
<lembron> so, i´m inide a gitlab-omnibus rails-shell or so -- i do have command-history with arrow-up/down, how can i print all of them as a list? - the docs mention "puts Readline::HISTORY.to_a" but that is nil.
TCZ has joined #ruby
<lembron> hm, seems that package is called "Reline" not "Readline"? - Reline::HISTORY.to_a seems to have my data :)
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
wyclif has quit [Ping timeout: 245 seconds]
wyclif has joined #ruby
TCZ has quit []
<lembron> and why would `json_data = File.read('/tmp/8mb.json')` take a good 2 minutes.... - its not even decoding there isnt it but still slow as balls
<adam12> lembron: Is the file 8mb?
<lembron> yeps, [{bla},...] stuff with 24k elements
<adam12> That's a good question. I don't normally ready large files like that, but try to prefer streaming them instead.
<lembron> guess i should also move that off /tmp - not that some systemd-shim is hanging there.. - but it more looks like "its trying to echo(and then cut off) is the baddy"
<lembron> reaming or whatever is all irrelevant too i guess - just using that to hacky-irb tryout some lines of gitlab-code to track down a bug...
<lembron> speaking of bug: root = Gitlab::Json.parse(json_data) then root.length / root.count say (correctly) 24731 -- but `root.each do |degradation| printf "." end` prints out only 3503 dots
Linux_Kerio has quit [Ping timeout: 265 seconds]
<adam12> So a quick test - File.read is fast, but IRB is trying to probably display the json_data variable and that's slow. If you're still doing the json_data = ... call, try adding a semi-colon to the end.
<adam12> json_data = File.read('/tmp/8mb.json');
<lembron> "trying to display the json_data variable" sounds about right yea - a ";" does nothing (also still prints the obj)
<adam12> Weird.
<lembron> `but `root.each do |degradation| printf "." end` prints out only 3503 dots` <- ignore what i said there... i may have just found a trace... --- the actual code has a `break unless codequality_report.valid_degradation?(degradation)` in there - if i remove that break i do get 24k .´s printed - "but it also never finishes" (and i have to Ctrl+C it o.O
<lembron> so Q) 'how is that that each doesnt finish there?' - MUST one break inside them? (no cue of ruby ;D)
<lembron> ;) seems i did find the element causing my break, getting to an error on the schema-validator 3 steps down now
TCZ has joined #ruby
eddof13 has joined #ruby
_0x1eef has quit [Quit: Reboot]
_0x1eef has joined #ruby
_0x1eef has quit [Client Quit]
_0x1eef has joined #ruby
_0x1eef has quit [Quit: Reboot]
_0x1eef has joined #ruby
Linux_Kerio has joined #ruby
Obsdark has joined #ruby
Obsdark has quit [Changing host]
Obsdark has joined #ruby
sylario has quit [Quit: Connection closed for inactivity]
TCZ has quit []
eddof13 has quit [Quit: eddof13]
mtm has quit [*.net *.split]
alexisg has quit [*.net *.split]
srushe has quit [*.net *.split]
kyber has quit [*.net *.split]
dostoyevsky2 has quit [*.net *.split]
r3m has quit [*.net *.split]
zayd has quit [*.net *.split]
Perflosopher has quit [*.net *.split]
yosafbridge has quit [*.net *.split]
alip has quit [*.net *.split]
mooff has quit [*.net *.split]
ih8u has quit [*.net *.split]
moo has quit [*.net *.split]
aesthetikx has quit [*.net *.split]
kyber has joined #ruby
alexisg has joined #ruby
dostoyevsky2 has joined #ruby
srushe has joined #ruby
r3m has joined #ruby
mtm has joined #ruby
zayd has joined #ruby
Perflosopher has joined #ruby
alip has joined #ruby
yosafbridge has joined #ruby
ih8u has joined #ruby
mooff has joined #ruby
aesthetikx has joined #ruby
moo has joined #ruby
donofrio has joined #ruby
dostoyevsky2 has quit [Max SendQ exceeded]
Perflosopher has quit [Max SendQ exceeded]
dostoyevsky2 has joined #ruby
Perflosopher has joined #ruby
Doc_X has quit [Ping timeout: 265 seconds]
<lembron> adam12 just to follow up on that - the ";" idea wasnt wrong, but it needs something else after - so "...; nil" and booms, the File.read is as instant as it would be expected ;D
<adam12> lembron: Oh that's interesting. I've never seen the need for the `;nil` but maybe we have different irb versions.
bak1an has joined #ruby
bak1an has quit [Quit: bak1an]
eddof13 has joined #ruby
eddof13 has quit [Client Quit]
Linux_Kerio has quit [Ping timeout: 248 seconds]
Guest1235 has quit [Quit: WeeChat 3.0]
anihil has joined #ruby
anihil has quit [Ping timeout: 260 seconds]
anihil has joined #ruby
anihil has quit [Ping timeout: 276 seconds]
anihil has joined #ruby
anihil has quit [Ping timeout: 276 seconds]
anihil has joined #ruby
anihil has quit [Ping timeout: 265 seconds]
anihil has joined #ruby
anihil has quit [Ping timeout: 265 seconds]
anihil has joined #ruby
anihil has quit [Ping timeout: 265 seconds]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
anihil has joined #ruby
anihil has quit [Ping timeout: 255 seconds]
anihil has joined #ruby
anihil has quit [Ping timeout: 248 seconds]
anihil has joined #ruby
anihil has quit [Ping timeout: 272 seconds]
anihil has joined #ruby
anihil has quit [Ping timeout: 244 seconds]
anihil has joined #ruby
anihil has quit [Ping timeout: 252 seconds]
anihil has joined #ruby
anihil has quit [Ping timeout: 252 seconds]
anihil has joined #ruby
anihil has quit [Ping timeout: 260 seconds]
anihil has joined #ruby
anihil has quit [Ping timeout: 248 seconds]
anihil has joined #ruby
anihil has quit [Ping timeout: 248 seconds]
anihil has joined #ruby
anihil has quit [Ping timeout: 252 seconds]
anihil has joined #ruby
anihil has quit [Ping timeout: 276 seconds]
anihil has joined #ruby
anihil has quit [Ping timeout: 248 seconds]
anihil has joined #ruby
anihil has quit [Ping timeout: 260 seconds]
anihil has joined #ruby
anihil has quit [Ping timeout: 276 seconds]
anihil has joined #ruby
anihil has quit [Ping timeout: 276 seconds]
TomyLobo has quit [Ping timeout: 260 seconds]