Category: Performance

  • Link Share: Issue #1

    Link Share: Issue #1

    A key ingredient of learning is teaching. My distant mentor Jim Kwik taught me this principle. Several months ago I used the teach-to-learn principle and I gave a talk covering CSS performance tips and tricks at my local PHP meetup. These are some of the links I used to prepare for that talk. How rendering…

  • Run Times for PHP Function & Method Call Types

    Run Times for PHP Function & Method Call Types

    Why should we care about code performance? Small decisions made toward code performance when totaled over the span of our careers can make a significant impact in our world. The impact is not making a program “run fast”. The impact is saving invaluable human time and bringing everyone closer to carbon-neutral. As developers, it’s essential…

  • Code Merged: Laravel

    Code Merged: Laravel

    Little did I know how much I would come to love Laravel. My Laravel journey started after acquiring a shamefully developed Drupal 6 e-commerce website, 6 years ago. Now, this particular Drupal 6 website was a total mess. Due to its build: I couldn’t add new products, I couldn’t upgrade core (it was modified), and…

  • How to Display and Debug All Database Queries Made by WordPress

    How to Display and Debug All Database Queries Made by WordPress

    When working with WordPress you will eventually have the question, “How do I display all database queries made by WordPress?” In your wp-config.php file add the following: By setting SAVEQUERIES to true the wpdb global instance will store all the database queries you make; this will allow you to inspect the number of queries each…

  • Increase Mac OSX Key Repeat Speed

    Increase Mac OSX Key Repeat Speed

    Enter the following in the terminal: Then logout and then back into your Mac. You are finished. Resources https://apple.stackexchange.com/questions/10467/how-to-increase-keyboard-key-repeat-rate-on-os-x

  • Don’t mistake the service worker as a small thing

    Don’t mistake the service worker as a small thing

    Service workers let you decide what a user experiences on your website when there is, is not or is limited network connectivity. The service worker is a game-changer. It is no small thing; not because we can make web applications work offline but because we can fully control how our web application access the network.…

  • The JavaScript Event Loop

    The JavaScript Event Loop

    I received that feeling of excitement, the unlocking of the mind, watching Philip Roberts unpack the JavaScript event loop at JSConf EU 2014. I’d like to share that moment and hopefully the feeling. Who knew setTimeout(function(){ do_stuff(); }, 0); would be so helpful.

  • Raw PHP and MySQL Eager Loading

    Raw PHP and MySQL Eager Loading

    Working with complicated and joined data sets can be tricky for MySQL database performance. For example, What if you need to load multiple authors and their books from a database. How would you work around the N+1 problem and avoid unnecessary queries to the database without an expensive join statement? The answer is quite simple.…

  • Enabling Performance Monitoring for MariaDB and MySQL

    Enabling Performance Monitoring for MariaDB and MySQL

    Enabling performance monitoring for MariaDB and MySQL works the same way. Performance monitoring for databases is beneficial when you have records in the hundreds of thousands using complex joins. It also helps when you want to do essential performance monitoring overall. In the past, you could use general_log, log_slow_queries and SHOW PROFILES. Since MySQL 5.5…