Click here to get back home

Re: Read a 'lot' of file

 HomeNewsGroups | Search | About
 comp.lang.php    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Re: Read a 'lot' of file =?ISO-8859-15?Q?Iv=E1n_S=E1nch 06-02-2008
Get Chitika Premium
Posted by =?ISO-8859-15?Q?Iv=E1n_S=E1nch on June 2, 2008, 7:34 am
Please log in for more thread options
Franck Y wrote:

> what would be the performance of this ?

As good as it can be, given your constraints.

> Using an exec in 200 files will surely slow down the system !

Nope.

> Or am i complety out of the field ?

You're doing something called "premature optimization". Don't try to solve a
problem you haven't encountered yet. Really, don't.

On the other hand, if somebody complaints about slowness, tell 'em to give
you more control of the system, put the text in a DB, and set up a fulltext
index.

--
----------------------------------
Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-

Against mediators.-Those who wish to be mediators between two resolute
thinkers are marked as mediocre: they lack eyes to see the unparalleled;
seeing things as similar and making them the same is the mark of weak eyes.
-- Friedrich Nietzsche [1844 - 1900]

Posted by C. (http://symcbean.blogspot.c on June 2, 2008, 7:56 am
Please log in for more thread options
On Jun 2, 12:34 pm, Iv=E1n S=E1nchez Ortega <ivansanchez-...@rroba-
escomposlinux.-.punto.-.org> wrote:
> Franck Y wrote:
> > what would be the performance of this ?
>
> As good as it can be, given your constraints.
>
> > Using an exec in 200 files will surely slow down the system !
>
> Nope.
>
> > Or am i complety out of the field ?
>
> You're doing something called "premature optimization". Don't try to solve=
a
> problem you haven't encountered yet. Really, don't.
>
> On the other hand, if somebody complaints about slowness, tell 'em to give=

> you more control of the system, put the text in a DB, and set up a fulltex=
t
> index.

You could just build your own full-text index, either on the
filesystem or in a DBMS and leave the files where they are. Or use an
off-the-shelf search engine like mnogo

C.

Similar ThreadsPosted
how to read out the content of a file named domain.com/file.php?X=ABC June 7, 2005, 3:15 pm
PHP/IIS: File Read/Write OK, File Unlink Denied March 22, 2006, 5:10 am
can't get php to read ini file. August 17, 2006, 8:07 pm
Read first 10 lines from a file August 19, 2005, 12:50 pm
How read ONLY last row ASCII file February 8, 2007, 7:31 am
PHP read from file on server January 2, 2008, 3:26 pm
Saving CSV file to read from php January 4, 2008, 2:27 pm
PHP Read Text File April 19, 2008, 5:09 pm
How to read fields from a file? September 30, 2008, 7:47 pm
read line from text file December 28, 2004, 7:50 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap