[Mono-list] mono fork, commit fails with fatal: Not a git repository [...] Lucene.Net after a autogen+make build

2013-06-05 Thread Jean-Michel.Perraud
Hi, Not sure whether this is a mono or mono-devel question. I have a fork of mono, freshly cloned/checked out on a Win7 box, to which I could commit. However after a ./autogen and a 'make' (the former doing some 'things' looking like a checkout with external modules including Lucene.Net), trou

Re: [Mono-list] Can this linq be optimised?

2013-06-05 Thread Stifu
A single Substring() (to isolate the part between brackets), then a Trim()? Or if the word between the brackets is not supposed to contain ANY space, maybe use the Trim overload that expects a char array parameter. Like this (except in your LINQ query): string word = "( hello)"; char[] trimCh

Re: [Mono-list] Can this linq be optimised?

2013-06-05 Thread Ian Norton
can you give us some example strings? On 5 June 2013 00:32, Paul Johnson wrote: > Hi, > > I have a class containing ints, strings and anything else you'd expect to > find in a class. I create a list of the class and then extract the strings > and perform a Distinct() on them. That bit is easy.

Re: [Mono-list] Can this linq be optimised?

2013-06-05 Thread Paul Johnson
Hi, can you give us some example strings? Sure. The names can be in either the form of ( foo ) or (foo) of ( foo) or (foo ) (though the last two are rare) Paul -- "Space," it says, "is big. Really big. You just won't believe how vastly, hugely, mindbogglingly big it is. I mean, you may th

Re: [Mono-list] Can this linq be optimised?

2013-06-05 Thread Stifu
Tried string.Trim(trimChars); yet? nodoid wrote > Hi, > >> can you give us some example strings? > > Sure. > > The names can be in either the form of > > ( foo ) > or > (foo) > of > ( foo) > or > (foo ) > > (though the last two are rare) > > Paul > -- > "Space," it says, "is big. Really bi

Re: [Mono-list] Can this linq be optimised?

2013-06-05 Thread Andy York
Is this running against a database? If so you can always get the SQL that is generated by the LINQ statement and check it running the SQL statement directly against the database and checking the number of reads and the time. The fact that your using a distinct hints that you may be missing a pa