The Syndk8 - Black Hat SEO Paradise
Fantomaster - Industrial Strength Black Hat SEO Tools
Affiliate Earners: Affiliate Programs
Home
Help
Search
Login
Register
RSS for SEOIdiot
Welcome,
Guest
. Please
login
or
register
.
November 21, 2008, 02:55:13 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home (Index)
Code Repository
C / C++ / C#
Woop
Pages: [
1
]
« previous
next »
Print
Author
Topic: Woop (Read 693 times)
m0nkeymafia
Expert
Offline
Posts: 236
Check it!
Woop
«
on:
September 14, 2007, 04:05:46 PM »
Im bored so ill write a little C++ story lol
where I work we write everything in house, as such we have our own XML parser [its well sexy and uses templates to take in data and streams to parse in and out to file or string] we use multimaps for lots of stuff as its easier when indexing via strings etc.
when we create an xml node we clear the multimaps just out of good coding practice. someone else came to use it and thought it was slow [it took 15 seconds to load a 1mb xml file in debug] so we had a poke around and juyst by removing the clears [even though the maps were empty] it sped things up 5x.
the moral of the story is, things like that are good coding style, initalising variables and so forth, but for maps and stl containers you dont need to, and will save a lot of processing power and time if you dont. if you use them heavily it might be worth while experimenting
all our apps are time and memory critical ... you should see what we fit into a 10mb app [seriously itll blow your mind]
Logged
I am Tyler Durden
perkiset
Olde World Hacker
Administrator
Lifer
Online
Posts: 5138
:sniffle: Humor was so much easier before.
Re: Woop
«
Reply #1 on:
September 14, 2007, 04:18:06 PM »
It never stops to amaze me how simple refactoring and analysis of prior code can speed things up...
or that even a one line program eventually gets dusty and breaks.
Logged
If I can't be Mr. Root then I don't want to play.
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Welcome to The Cache
-----------------------------
=> Init() - New Member Introductions
=> Efficient Cache Access Functions (aka User Tips)
=> I/O Protocols (Forum Rules)
=> Callback Routines
=> Coder's World Beat
=> The Tao of Programming
=> freemem() & garbage collection
-----------------------------
phpMyIDE
-----------------------------
=> Announcements & Updates
=> Support Threads
=> Tips, Tricks & Techniques
-----------------------------
Discussion Boards
-----------------------------
=> AJAX
=> ASP & .NET
=> C/++/#, Java, Delphi and other heavies
=> ColdFusion
=> Database Discussion (MySQL, Oracle and such)
=> General Discussion
=> JavaScript
=> Mac & iPhone Stuff
=> Music & Music Technology
=> PERL Coding & Best Practices
=> PHP
=> Python, Lisp/Scheme
=> *n[ui]x & OS-X
=> SMF Discussion
=> All things Windows
-----------------------------
Code Repository
-----------------------------
=> C / C++ / C#
=> ASP / .NET
=> Cold Fusion
=> Javascript & AJAX
=> Lisp (++Scheme) and such
=> PERL
=> PHP
=> Python
=> Regex
=> Shell Scripting
Perkiset's Place Home
Best of The Cache
phpMyIDE: MySQL Stored Procedures, Functions & Triggers
Politics @ Perkiset's
Pinkhat's Perspective
cache
mart
coder
programmers
ajax
php
javascript
Loading...