Today's Question:  What does your personal desk look like?        GIVE A SHOUT

 ALL


  Will PHP __autoload() function really affect performance?

IntroductionRegarding to PHP performance, the most frequently discussed is the __autoload() function. Many people say that this function will affect the performance very much, some other people say that opcode will affect __autoload() as well. So we will have some tests on these two.EnvironmentPHP 5.3.9 -- Launch under fastcgi modeNginx 1.1.12eAccelerator 0.9.6.1ScreenshotsLaunch pageeAccelerator(In php.ini) configurationFile structure(each Test file has over 6000 lines of code)Testing With eAccelerator cache and with __autoload() function loadedThe result after refreshing the web browserTotal...

3,787 1       PHP PERFORMANCE __AUTOLOAD() OPCODE


  Faster than C

Judging the performance of programming languages,usually C is called the leader,though Fortran is often faster.New programming languages commonly use C as their referenceand they are really proud to be only so much slower than C.Few language designer try to beat C.What does it take for a language to be faster than C?Better Aliasing InformationAliasing describes the fact that two references might point to the same memory location.For example, consider the canonical memory copy:void* memcopy(void* dst, const void* src, size_t count) { while (count--) *dst++ = *src++; return dst;}Depending on...

3,263 1       C PERFORMANCE SPEED FORTRAN CRITERIA


  Using C for a specialized data store

Pixenomics stores and transports 1.2 million pixels from the server to the client. During development we played with various methods to store and process this. Our ultimate goal was to send the entire board in under 1 second.During the stages of prototyping we used a MySQL database without thinking too much about performance. With a mere 2,000 pixels we quickly realised this wasn’t even usable as a demo. Changing the storage engine to memory was much better but still obviously unusable.The problem wasn’t to store the pixels but to retrieve all 1.2 million pixels quickly as well a...

2,540 0       C PERFORMANCE EFFICIENCY DATA STORE


  Java vs F#

Dr Cliff Click of Azul Systems, specialists in manycore JVM systems, recently published a blog post about the performance of Java compared primarily to C and C++ but also discussing C# and .NET. Three of Cliff's comments are of particular interest:Under the heading "Places where C/C++ beats Java for obvious reasons":"Value Types, such as a 'Complex' type require a full object in Java." - Dr Cliff ClickWhat Cliff forgot to mention is that .NET also provides value types and a far more compelling example than complex numbers is the humble hash table.Consider the task of filling a hash table with ...

3,984 0       JAVA F# PERFORMANCE JVM


  the Performance Golden Rule

Yesterday I did a workshop at Google Ventures for some of their portfolio companies. I didn’t know how much performance background the audience would have, so I did an overview of everything performance-related starting with my first presentations back in 2007. It was very nostalgic. It has been years since I talked about the best practices from High Performance Web Sites. I reviewed some of those early tips, like Make Fewer HTTP Requests, Add an Expires Header, and Gzip Components.But I needed to go back even further. Thinking back to before Velocity and WPO existed, I thought I might ...

2,927 0       WEB DESIGN PERFORMANCE GOLDEN RULE


  Python Performance Tips, Part 1

To read the Zen of Python, type import this in your Python interpreter. A sharp reader new to Python will notice the word “interpreter”, and realize that Python is another scripting language. “It must be slow!”No question about it: Python program does not run as fast or efficiently as compiled languages. Even Python advocates will tell you performance is the area that Python is not good for. However, YouTube has proven Python is capable of serving 40 million videos per hour. All you have to do is writing efficient code and seek external (C/C++) implementation for speed ...

3,102 1       TIPS PERFORMANCE PYTHON EFFICIENCY


  Macro vs. Micro Optimisation

So there's recently been a bit of hype about another Colebourne article: http://blog.joda.org/2011/11/real-life-scala-feedback-from-yammer.htmlI'd like to respond to a few points he makes.First - You should evaluate Scala and pay attention to its benefits and flaws before adopting it.  Yes, there are flaws to Scala.   Working at typesafe makes you more aware of some of them.  We're actively working to reduce/minimize/get rid of these.   In my opinion, the negatives of using Scala are peanuts compared to the postives of choosing Scala over Java.  I think everyone s...

2,837 0       SOFTWARE PERFORMANCE OPTIMIZATION MACRO MICRO


  This Is Why Your Website Is Slow

Click for a larger imageGhostery, the browser plugin that allows its users to "track the trackers," just released data on the tags, widgets and analytics on websites that are the worst in terms of slowing page loads to a crawl.Update: Ghostery discovered an error in their original data set. It appears that Millenial Media was not on this year's list at all, and the #2 slot belonged to AdFunky. Both the text and the graph above have been changed to reflect this.Any webmaster worth his or her salt already knows that slow page loads adversely affect Google rank and pageviews, but not everyone see...

2,609 0       WEB APPLICATION PERFORMANCE REASON SLOW LAGTAG