Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re^2: 3-byte representation

by gerleu (Novice)
on Oct 19, 2011 at 07:52 UTC ( #932320=note: print w/replies, xml ) Need Help??

in reply to Re: 3-byte representation
in thread 3-byte representation

Hello TomDLux and thank for your answer ! I've several thousands couples of numbers (in fact latitudes and longitudes, at first with 4 decimal precision. but converted to integers during the creation of a file). Physical storage place is not an issue, only memory space if the fastest parsing solution is memory intensive, because many different files will be processed by many different users at the same time......

Replies are listed 'Best First'.
Re^3: 3-byte representation
by TomDLux (Vicar) on Oct 31, 2011 at 17:18 UTC

    Considering a process is allocated megabytes of memory when it runs, worrying about a few thousand kilobytes of wasted space is not really productive.

    Wasting memory or wasting CPU resources is never good, of course, but correctness is the first priority. Once you have a solution that works correctly, tighten up memory use, IF it presents a problem in the number of instances you can run; tighten up the algorithmns involved, IF there's a problem with run time.

    No problem? Go on to the next task.

    As Occam said: Entia non sunt multiplicanda praeter necessitatem.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://932320]
and monks are getting baked in the sun...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2017-05-23 03:53 GMT
Find Nodes?
    Voting Booth?