#60 low performance in Files::tmpfile

v0.9.1
closed-duplicate
genxref (49)
5
2009-03-26
2002-06-13
No

When using Plain.pm the file is copied entirely to the tmp dir.
Would a Symbolic link be enough here at least for UNX?

Maybe the Files module could be changed to supply two methods

AcquireTempFile( ... )
ReleaseTempFile( ... )

AcquireTempFile could then in the case of Plain files just return the original filename while
ReleaseTempFile does nothing. Ths is to avoid unlinking the files if they are no real tempfiles but the
original.

I could do this but first wanted to hear if there is any problem.

Discussion

  • Malcolm Box

    Malcolm Box - 2004-04-21

    Logged In: YES
    user_id=215386

    I don't see a problem with this, there is a clear point at
    which to clean up (where the file is currently deleted).
    This would probably improve performance for the Plain method.

     
  • Malcolm Box

    Malcolm Box - 2004-04-21
    • assigned_to: nobody --> mbox
     
  • Malcolm Box

    Malcolm Box - 2009-03-26
    • status: open --> closed-duplicate
     
  • Malcolm Box

    Malcolm Box - 2009-03-26

    Same problem as 2714744.

     

Log in to post a comment.