Re: Writing multilingual site - how to effectively output strings depending on language



Tony Marston wrote:
But which of these is more efficient?:
(a) Reading a file of 1000 entries into memory so that each entry can be read from memory.
(b) Reading each of the 1000 entries from disk individually.

Seeing as the file will be read into the filesystem cache, its unlikely that you will be doing 1000 disk access' to get the data.

/marcin
.



Relevant Pages

  • Re: kernel bugs 2.6.31-rc6
    ... the same 'group' entry? ... have expected a different problem in that after I freed this memory ... but not the list entries. ... I'm downloading and installing KDE, as I guess kde uses inotify pretty ...
    (Linux-Kernel)
  • Re: Streamreader Alternative
    ... ArrayList entries = new ArrayList; ... entry = reader.ReadLine; ... I am reading through a file which is seperated into ... StreamReader to input a file and pull out a specific section of the ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: kernel bugs 2.6.31-rc6
    ... the same 'group' entry? ... have expected a different problem in that after I freed this memory ... but not the list entries. ... I'm downloading and installing KDE, as I guess kde uses inotify pretty ...
    (Linux-Kernel)
  • Re: kernel bugs 2.6.31-rc6
    ... the same 'group' entry? ... have expected a different problem in that after I freed this memory ... but not the list entries. ... I'm downloading and installing KDE, as I guess kde uses inotify pretty ...
    (Linux-Kernel)
  • Re: Streamreader Alternative
    ... ArrayList entries = new ArrayList; ... entry = reader.ReadLine; ... I am reading through a file which is seperated into ... StreamReader to input a file and pull out a specific section of the ...
    (microsoft.public.dotnet.languages.csharp)