DotNetKick.com is an open-source project. Please report any bugs and let us know your great suggestions. Currently running svn revision 637 (rss)

Kick Spy!, Kick Zeitgeist and Kick Widgets

15
kicks
published 1 year, 1 month ago, submitted by jaavaaguru 1 year, 1 month ago

sorn.net — After some experimentation, this is the fastest way I've found to split a string that represents a multi-line text file into individual lines. Still not as fast as doing it in C, but faster than StringReader or String.Split.

tags: , | tag it

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:

Comments:
so since his code isnt that much faster, he made it do it tons of times so that it would eventually appear to make a difference. blah whatever.
posted by bladefist 1 year, 1 month ago
One thousand times is not that out of the ordinary for reading a file full of strings. In addition, a 20 - 30% increase is pretty good. We are reading files with 80,000 plus lines...

JOhn
posted by milican 1 year, 1 month ago
20% increase with 1/3 the features of the .net/mono. This is only useful in special scanrios when you know absolutely the format of the file will be the same everytime.
posted by bladefist 1 year, 1 month ago



information Login or create an account to comment on this story
 

Sponsored Link: www.carlist.ie

Search:

Ads by The Lounge