Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

last hour of cb

by Tanktalus (Canon)
on Jan 26, 2007 at 20:59 UTC ( #596792=document: print w/ replies, xml ) Need Help??

Updates more-or-less every 5 minutes (except when there is no activity). Extracted from Tanktalus' CB Stats' database. Feedback
Shows the last hour or so, but never more than will fit in 64k, nor over two hours. Other sources of cb history
Last update: Apr 29, 2016 at 21:55 UTC
[RuZombieSlayer]choroba thanks for your reply, it was short and worked nicely. However considering the size of both my arrays being 400,000 elements each, do you think i should make them into a hash anyway? Performance wise do hashes work better with lots of data.
[AnomalousMonk]RuZombieSlayer: Hashes work just fine with "lots" of elements. 400K is (almost) nothing.
[RuZombieSlayer]Yea i was under the impression hashes would work fine, i was wondering if just using arrays was though. to me @1 = @2@3; seems more elegent and simple than creating a hash of words and and numbers. So i was wondering what the specific advantages of hash
[RuZombieSlayer]* @3 in square brackets
[tye]a contiguous array would be ever so slightly faster (and a bit smaller) than a hash. For most cases, the difference doesn't matter.
[RuZombieSlayer]ok great, thanks.
[AnomalousMonk]RuZombieSlayer "... just using arrays ...": I was trying to consider the encoding/decoding part also. Hashes are great for look-up.
[RuZombieSlayer]i see, thanks for that example. I may try and adapt it later on. Thanks :)
[kadrjo]hi
[kadrjo]new to perl, help
[AnomalousMonk]kadrjo: We cannot help you if you do not ask a question.
[kadrjo] I have 2 files (file1,file2). I would like to extract the columns from file2 that have their ids listed on file1. These are big files, with thousands columns and lines. File1: Id123B Id124A Id125A File2: Code sex id123B id127 id125A ............... de
[RuZombieSlayer]you could do what i'm doing and set yourself a goal to program something over a few months. When you have a goal you can begin to ask specific questions and learn a lot. i personally find that better than begginer tutorials.
[AnomalousMonk]kadrjo: Have you looked at perlintro? The Tutorials?
[AnomalousMonk]kadrjo: PleaseHow do I post a question effectively? How do I compose an effective node title? and How (Not) To Ask A Question
[AnomalousMonk]kadrjo: Your question above looks a bit long for the Chatterbox. Maybe better to post a formal question.
[kadrjo]okay thanks

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2016-04-30 11:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    :nehw tseb si esrever ni gnitirW







    Results (441 votes). Check out past polls.