SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Hybrid View

  1. #1
    SitePoint Addict
    Join Date
    Oct 2008
    Posts
    263
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Any extra overhead when using extract()?

    I have a performance question, I'm using extract() to extract a mysql_fetch_array results into variables then use them for output.

    So basically does that add any extra uneeded overhead to performance? do you recommend keeping this way or simply use the fetched array directly when i'm outputting?

    Thank you

  2. #2
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Stop with micro optimization and do Profiling!
    http://www.xdebug.org/
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.


  3. #3
    SitePoint Addict
    Join Date
    Oct 2008
    Posts
    263
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is it okay to do profiling before the application is ready? many things might differ...
    so i don't want to code something now and have to change/modify it all later..

  4. #4
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Yes as long as the major components are all together and working. I can tell you right now extract doesn't put a dent in your overhead compared to accessing the database.
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •