writing a txt file is very slow using a php script using two tables linked with a com

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • abhishekpcdap
    New Member
    • May 2014
    • 1

    writing a txt file is very slow using a php script using two tables linked with a com

    i am writing .txt file using two tables linked with a common field through a php programe but it is takeing very much time in creating the .txt file as well as it also writes very slowly in that file how can i speed up my process
  • Atli
    Recognized Expert Expert
    • Nov 2006
    • 5062

    #2
    Start by posting your code. We can't really suggest improvements if we can't see what you have now.

    One piece of general advice I would give you, when dealing with file IO, would be to use memory buffering wisely. An actual IO write operation is always expensive, so writing every character (byte) individually will be far slower than writing, say, a whole kilobyte of data in one operation.

    Comment

    Working...