The Most Valuable Skill

The Most Valuable Skill. I always thought I was only good at one thing. Then I realized how wrong I truly was. Do you have the one skill that transfers to all jobs….

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Structural Optimisation in Python

Looking at the bigger picture.

Structural optimisation takes a big picture approach. It attempts to optimise code by solving the problem in a different way, for example:

These techniques are not a replacement for low-level optimisation, they represent an additional way of optimising code. It isn’t always possible to apply this type of optimisation. For example, if you are already using the most efficient known algorithm then there may be no way to improve it. But where structural changes do apply they can sometimes lead to dramatic improvements. And, of course, having found the most efficient structural solution, it might still be possible to make it even faster (if necessary) using low-level optimisations.

This is a big topic, this article is only really an overview of techniques rather than a comprehensive guide.

There are many standard algorithms in computer science that cover tasks such as:

There are many other algorithms for other tasks, of course. There are often several algorithms that achieve the same result but work in different ways. And sometimes, one algorithm can be much faster than another, depending on the specific requirements of your application.

There are also many data structures. Again there are often several different data structures that could be used for any particular purpose, but some might be more efficient than others for a particular purpose.

Add a comment

Related posts:

Being a First Year University Student During a Pandemic

This pandemic has majorly altered the way we all live (in ways I don’t even need to explain). But how are new university students coping with this big and drastic change? Moving to university is a…

Mobile App Performance Optimization Best Practices

In order to accomplish mobile app performance optimization, in addition to using appropriate tools to monitor performance and stability and collect user feedback, there are also some basic techniques…

My Coding Bootcamp Survival Guide

So this year has been pretty crazy, I have gone from a coding bootcamp to a full Junior Software Engineer. I’ve been really lucky to get a job from a coding bootcamp and I am here to tell you it can…