Click here to Skip to main content
15,894,017 members
Home / Discussions / C#
   

C#

 
GeneralRe: Find maximum font size where string fits in a box Pin
DaveyM6930-Jan-10 13:46
professionalDaveyM6930-Jan-10 13:46 
GeneralRe: Find maximum font size where string fits in a box Pin
Luc Pattyn30-Jan-10 13:56
sitebuilderLuc Pattyn30-Jan-10 13:56 
GeneralRe: Find maximum font size where string fits in a box Pin
DaveyM6930-Jan-10 14:07
professionalDaveyM6930-Jan-10 14:07 
GeneralRe: Find maximum font size where string fits in a box Pin
hain6-Feb-10 17:19
hain6-Feb-10 17:19 
AnswerRe: Find maximum font size where string fits in a box Pin
Dave Kreskowiak30-Jan-10 14:07
mveDave Kreskowiak30-Jan-10 14:07 
AnswerRe: Find maximum font size where string fits in a box Pin
#realJSOP31-Jan-10 0:16
mve#realJSOP31-Jan-10 0:16 
QuestionSorting Pin
BobInNJ30-Jan-10 11:00
BobInNJ30-Jan-10 11:00 
AnswerRe: Sorting Pin
Luc Pattyn30-Jan-10 11:30
sitebuilderLuc Pattyn30-Jan-10 11:30 
Hi Bob,


BobInNJ wrote:
an external sort method


None that I know of.


BobInNJ wrote:
Can I use LINQ?


That wouldn't help solving the size problem, and not improve performance.

I'm not sure what your data types are, what fraction of each item you need in order to sort it, nor your sorting criteria.
In general, I see two valid approaches:

1.
stuff it all in a database, sort and export.
You could do that interactively or write an app to do it.

2.
Or write a little app that reads part of the data (say 100MB), sorts it and sends it to a temporary file.
repeat N times till all data processed.
then perform a merge-sort of those N files to 1 final result file.


PS: it often is wise to avoid large files all together; if you can't hold it in memory, it will be trouble sooner or later. Do you really need it all in one file? e.g. if an app generates a lot of log info, just start a new file every so often.

Smile | :)

Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.
[The QA section does it automatically now, I hope we soon get it on regular forums as well]


GeneralRe: Sorting Pin
BobInNJ30-Jan-10 12:06
BobInNJ30-Jan-10 12:06 
GeneralRe: Sorting Pin
Luc Pattyn30-Jan-10 12:14
sitebuilderLuc Pattyn30-Jan-10 12:14 
GeneralRe: Sorting Pin
Gideon Engelberth30-Jan-10 19:15
Gideon Engelberth30-Jan-10 19:15 
GeneralRe: Sorting Pin
Luc Pattyn1-Feb-10 3:32
sitebuilderLuc Pattyn1-Feb-10 3:32 
GeneralRe: Sorting Pin
Gerry Schmitz30-Jan-10 14:43
mveGerry Schmitz30-Jan-10 14:43 
GeneralRe: Sorting [modified] Pin
PIEBALDconsult30-Jan-10 17:09
mvePIEBALDconsult30-Jan-10 17:09 
GeneralRe: Sorting [modified] Pin
Gideon Engelberth30-Jan-10 19:18
Gideon Engelberth30-Jan-10 19:18 
GeneralRe: Sorting Pin
Luc Pattyn31-Jan-10 1:58
sitebuilderLuc Pattyn31-Jan-10 1:58 
GeneralRe: Sorting Pin
Gideon Engelberth31-Jan-10 6:46
Gideon Engelberth31-Jan-10 6:46 
GeneralRe: Sorting Pin
Luc Pattyn31-Jan-10 14:14
sitebuilderLuc Pattyn31-Jan-10 14:14 
GeneralRe: Sorting Pin
Garth J Lancaster31-Jan-10 0:29
professionalGarth J Lancaster31-Jan-10 0:29 
GeneralRe: Sorting Pin
BobInNJ31-Jan-10 6:27
BobInNJ31-Jan-10 6:27 
QuestionMonitoring Folder Access Pin
Yekoor30-Jan-10 8:48
Yekoor30-Jan-10 8:48 
AnswerRe: Monitoring Folder Access [modified] Pin
#realJSOP30-Jan-10 8:53
mve#realJSOP30-Jan-10 8:53 
AnswerRe: Monitoring Folder Access Pin
Gerry Schmitz30-Jan-10 14:53
mveGerry Schmitz30-Jan-10 14:53 
QuestionC# Group new properties Pin
jojoba201030-Jan-10 6:36
jojoba201030-Jan-10 6:36 
AnswerRe: C# Group new properties Pin
DaveyM6930-Jan-10 6:59
professionalDaveyM6930-Jan-10 6:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.