Site Sponsors:
Linkedin: How can my code be faster than STL algorithms?  
Linkedin asks: "Something is wrong and I don't know what. How can my code be faster than STL algorithms?"

My Response:

"Many often find that custom code creates faster solutions. In general, generic solutions produce generic results?

Here your test cases work well for what you have envisioned. Yet if you want to see a REAL performance boost, then pre-allocate your <T> memory for the anticipated usage, only to grow by similarly-sized blocks; Base allocations upon a rounded-up, architecture specific (64 bit?) sub-allocated power of 2. Thereafter, if the preferred usage is required to be full CRUD, consider using a linked list and a pack() scenario for sub reallocation and no one will be able to touch your speed.

For even faster results, from there we might use inline assembly language so as to base those blocks upon Intel Page Selectors... Why? Because calling 'new' all the time is always a performance bottleneck. Using Intel page selectors directly for memory sub-allocation will be allot f-a-s-t-e-r. --But is it worth the effort?

Get the idea? Generic solutions can almost always be improved upon by by custom means / coding to support a particular problem domain. Many times – when screaming performance is required - it can even be better to simply junk generics all together... It all depends upon what one is trying to accomplish?

[ view entry ] ( 2211 views )   |  permalink  |  related link
Linkedin: Working Less for Better Results? 
My reply to a post on linkedin:

"Surely - as noted - a good part of strategic thinking often involves simply considering what others are doing / have done. Yet rather than working less, many often find that 'never leaving work' is part and parcel of what most employers are looking for in a professional. (i.e. If we need a doctor, do we not want one that keeps up with his or her trade in their spare-time?)

Likewise, the willingness to understand the patterns and practices from elsewhere often requires a gift of insight that only repeated exposure / constant work can provide. -Such is why folks need Consultants. Surely many have also discovered that looking for bigger-picture lessons often requires a great deal more - rather than less - work.

Yet when we truly enjoy what we are doing, the extra efforts often seems like no-work at-all?

So I do not believe that one should ever look at strategic assessments as a 9-5 activity. If one is genuinely a professional, then strategic thinking takes place far MORE - rather than less - frequently?

Yet perhaps the best way to be ever thinking about one's profession is to simply be sure that one has chosen a profession that one enjoys. ...

"The biggest mistake most people make is trying to earn a living doing something that they do not enjoy." (sic) ---Forbes

[ view entry ] ( 1119 views )   |  permalink  |  related link
MySQL on CentOS 6 - via SCL 
RedHat offers a nifty little collection of add-on software:

"Enterprise Linux distributions are designed to be around for a long time. They are also designed to maintain ABI/API compatibility over the lifetime of the distribution, so that you can create your own custom programs on day 1 of the release and have them work as long as the distribution is supported. For CentOS that is currently 10 years. This means, however, that by the end of the lifetime of a distribution, the programming language or database versions (think php, python, perl or mysql, postgresql) included are getting very old compared to those that are available in "cutting edge" Linux distributions.

For many enterprise users, that is OK ... Think a major retailer who spent $10 Million to create an inventory solution using the default languages available and they want to leverage that solution securely for the entire 10 year lifespan to get a return on their programming investment. But many enterprises also want to be able to create software with newer programs as well. They want both stability AND newer software. They want it to work alongside the other system software so they can choose slow and steady or newer software for development.

Enter Software Collections, also known as SCLs. As an example, SCLs allow you to run the default python that comes with CentOS (so yum and other system tools in CentOS work), while also allowing a newer version of python to be installed alongside the default python for use creating and running software with newer requirements."

What a great idea!

Here is what we did:

yum install centos-release-SCL
yum install mysql55

For those of us who are used to spending several hours downloading, patching, and integrating ad-hoc super-distro tech, the above three line script might seem positively revolutionary.

yum install postgresql92

Other goodies include more recent versions of Python, Ruby, PostgreSQL, and more. -Follow the "Related Link" (below) to see the 1.0 of yet another truly inspiring idea from Red Hat!

-Enjoy the upgrade!


Note: MySQL Software Developers might want to also read about the MySQL R&D Server Setup

[ view entry ] ( 5651 views )   |  permalink  |  related link

<<First <Back | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | Next> Last>>