Jérémie Laval
beddbef60a
Fix overflow checking in PLinq Range operator
2011-01-26 17:50:09 +00:00
Geoff Norton
16d4fd790b
Further .NET 4.0 ification of the mobile profile
2011-01-25 20:10:54 -05:00
Jb Evain
cb3f41ca57
[linq] Fix Reverse for IList implementors
2011-01-26 00:08:11 +01:00
Jb Evain
bce7739486
[linq] Fix overflow check for Count
2011-01-25 23:47:58 +01:00
Jb Evain
f224ec361f
[linq] fix Range extreme boundaries
2011-01-25 23:45:44 +01:00
Jb Evain
812c108cd3
[LINQ] Fix non generic AsQueryable issue #661462
2010-12-30 16:21:40 +01:00
Jérémie Laval
5976833aee
Sys.Core parameters fixup
2010-12-15 17:43:55 +00:00
Marek Safar
bd05c6c836
Some .net 4.0 api compatibility fixes
2010-12-15 11:12:07 +00:00
Jérémie Laval
6c7937ec44
[PLinq] Detect when AsParallel is called multiple time in a query and simply reuse the existing ParallelQuery object
2010-12-09 16:00:14 +00:00
Jérémie Laval
ac405597eb
[PLinq] Add dummy GetEnumerator override in OrderedParallelQuery to make gui-compare happy
2010-08-26 13:49:11 +01:00
Jérémie Laval
0da162b9f2
[PLinq] Include Cancellation checks deeper in the pipeline processing
2010-08-26 13:45:50 +01:00
Jérémie Laval
68c86d5333
[PLinq] Use default comparer instead of throwing an ANE in PLinq operators
2010-08-25 13:17:42 +01:00
Jérémie Laval
7c5522b789
[PLinq] Implement GroupBy operator
2010-08-24 17:38:18 +01:00
Jérémie Laval
a6815ab804
[PLinq] Plug in QueryJoinNode for Join operator
2010-08-24 14:09:08 +01:00
Jérémie Laval
f00afa22f2
[PLinq] Add implementation of Take/TakeWhile operators (including corresponding query node and unit tests)
2010-08-20 14:48:21 +01:00
Jb Evain
d591966d45
[Fix] Enumerable.Except: return a duplicate free set. Fix bug #611821 .
2010-08-19 12:37:24 +02:00
Jérémie Laval
ccea4ec859
[PLinq] Tune SkipWhile operator, re-enable its unit tests
2010-08-18 10:33:17 +01:00
Jérémie Laval
96a8f92359
[PLinq] Reflect directory hierarchy change on namespace names
2010-08-18 09:25:25 +01:00
Jérémie Laval
d3048467db
[PLinq] Move NET_4_0 define check under licence text
2010-08-17 18:01:15 +01:00
Jérémie Laval
1ee5e87351
[PLinq] Tidy up file hierarchy in System.Linq
2010-08-17 18:01:14 +01:00
Jérémie Laval
7704dbed38
[PLinq] Fix and improve Skip operator and use two different versions of the predicate depending on the relative order of the query.
...
This actually make the operator complies to the behavior described in MSDN "Order Preservation" table.
2010-08-17 17:01:07 +01:00
Jérémie Laval
3f5fd68ddb
[PLinq] Fix ToArray and ToList operator to also conservatively keep order when an explicit order guard is in the query.
2010-08-17 17:01:06 +01:00
Jérémie Laval
1bf7f30b92
[PLinq] Fix ProcessAndAggregate to correctly initialize its seed with all workers when no seedFunc is supplied.
2010-08-17 17:01:05 +01:00
Jérémie Laval
5bf52e5550
[PLinq] Add a IsOrdered internal operator that naively says if the current node is behind an ordered guard.
...
This is necessary for some PLinq operator that can provide a better optimized version of themselves when there is no ordering constraint whithout having to create yet another query node. Note that the method can be optimized with a more specialized version of the visitor.
2010-08-17 17:01:05 +01:00
Jérémie Laval
bc3a2bc285
[PLinq] Remove unused Process overload.
2010-08-17 17:01:05 +01:00
Jérémie Laval
465643e3c2
Fix whitespace mess in ParallelEnumerable methods.
2010-08-17 17:01:03 +01:00
Jérémie Laval
1bb7275e38
[PLinq] Fix visitor behavior when on a QueryOrderGuardNode.
...
Previously the case of Unordered wasn't taken in account and the control flow wasn't properly forwarded to the following nodes in the query# Please enter the commit message for your changes. Lines starting
2010-08-17 17:01:03 +01:00
Jérémie Laval
b0bc8ddc33
[PLinq] Switch to the more reliable ToListOrdered operator in QueryReverseNode.
...
Using ToArray directly, even though incorrect, was working by a twist of fate in that the mostly-standard partitioner and ToArray operator were based on the same assumptions.
2010-08-17 17:01:03 +01:00
Jérémie Laval
bc37c80cde
[PLinq] Terminate directly when all the necessary values have been correctly staged in OrderingEnumerator.
2010-08-17 17:01:02 +01:00
Jérémie Laval
7b1551ca3c
[PLinq] Enclose operator processing in a try/finally block so that upon Dispose'ing the iterator a cleanup path is also called.
...
This prevent some other operator from deadlocking by e.g. removing participant in barrier that ordered operator may use.
2010-08-17 17:01:02 +01:00
Jérémie Laval
b0c2cffb4d
[PLinq] Cleanup code in QueryNodes.
...
Switch from manually creating result sets to creating them with a Linq query. Replaced some type with var. Split indexed and non indexed call in two different virtual method call.
2010-08-17 17:01:01 +01:00
Jb Evain
16194ffee8
style
...
svn path=/trunk/mcs/; revision=160338
2010-07-14 08:17:12 +00:00
Jb Evain
7765cb325a
2010-07-14 Jb Evain <[email protected] >
...
* Enumerable.cs (Union): fix HashSet.Contains call.
svn path=/trunk/mcs/; revision=160337
2010-07-14 08:16:50 +00:00
Jb Evain
73c7b851cf
2010-07-13 Jb Evain <[email protected] >
...
* Enumerable.cs (Except): fix HashSet.Contains call.
Fixes #621911 .
svn path=/trunk/mcs/; revision=160298
2010-07-13 14:35:56 +00:00
Jb Evain
0b00864125
2010-06-22 Jb Evain <[email protected] >
...
* Queryable.cs: properly set the constants types in the queryable
expression tree.
svn path=/trunk/mcs/; revision=159337
2010-06-22 13:30:05 +00:00
Jb Evain
93413c9cb9
fixicate
...
svn path=/trunk/mcs/; revision=159331
2010-06-22 12:22:03 +00:00
Jb Evain
7d3defbb7b
2010-06-22 Jb Evain <[email protected] >
...
* EnumerableQuery_T.cs
* QueryableEnumerable.cs:
override ToString.
svn path=/trunk/mcs/; revision=159329
2010-06-22 12:13:26 +00:00
Rolf Bjarne Kvinge
754903d2cf
In class/System.Core:
...
2010-06-18 Rolf Bjarne Kvinge <[email protected] >
* System.Core/Dummy.cs:
* moonlight_raw_System.Core.dll.sources: Add an internal dummy class to create
the System.Core namespace.
* Makefile:
* moonlight_raw_System.Core.dll.sources: Include the dlr in Moonlight.
In class/System.Core/System.Linq:
2010-06-18 Rolf Bjarne Kvinge <[email protected] >
* EnumerableQuery.cs:
* EnumerableQuery_T.cs:
* EnumerableExecutor.cs:
* EnumerableExecutor_T.cs: Include in Moonlight.
* Enumerable.cs: Moonlight too needs Zip.
In class/System.Core/System.Runtime.CompilerServices:
2010-06-18 Rolf Bjarne Kvinge <[email protected] >
* ExecutionScope.cs: This class exists in Moonlight, but isn't supported.
* StrongBox_T.cs:
* DynamicAttribute.cs: Include in Moonlight.
svn path=/trunk/mcs/; revision=159111
2010-06-17 23:46:55 +00:00
Jérémie Laval
32d1d3e231
2010-05-25 Jérémie Laval <[email protected] >
...
In class/System.Core/System.Linq/:
* ParallelExecuter.cs: Fix NRE caused by lambda wrapping
svn path=/trunk/mcs/; revision=157856
2010-05-25 14:37:01 +00:00
Jb Evain
deb0e467e0
2010-05-25 Jb Evain <[email protected] >
...
* Enumerable.cs: make Reverse lazier. Based on a patch by
Matthew Flaschen <[email protected] >. Fixes #608195 .
svn path=/trunk/mcs/; revision=157831
2010-05-25 08:56:12 +00:00
Jb Evain
3a9cf4b4cd
2010-05-19 Jb Evain <[email protected] >
...
* Enumerable.cs: fix GroupBy to deal with a null key for the last
group entry. Also fix GroupBy to properly throw ArgumentNullException.
svn path=/trunk/mcs/; revision=157558
2010-05-19 14:41:12 +00:00
Jérémie Laval
b6390b0e5d
2010-05-05 Jérémie Laval <[email protected] >
...
In class/System.Core/System.Linq/:
* ParallelEnumerable.cs: Some operators weren't declared
as extension methods. Fixed.
svn path=/trunk/mcs/; revision=156723
2010-05-05 13:36:38 +00:00
Jérémie Laval
3ebc2a2601
2010-04-29 Jérémie Laval <[email protected] >
...
In class/System.Core/System.Linq/:
* ParallelQueryEnumerator.cs: Use new non-blocking collection
for storing indexed elements.
In class/System.Core/System.Linq/Internal/:
* OrderingEnumerator.cs: Use new non-blocking collection
for storing indexed elements.
svn path=/trunk/mcs/; revision=156433
2010-04-29 13:17:22 +00:00
Jérémie Laval
cfcaf86b6b
2010-04-29 Jérémie Laval <[email protected] >
...
In class/System.Core/System.Linq/:
* ParallelExecuter.cs: Bring indexed worker methods support.
Check for null callback.
svn path=/trunk/mcs/; revision=156432
2010-04-29 13:17:13 +00:00
Jérémie Laval
c88dec6d92
2010-04-15 Jérémie Laval <[email protected] >
...
In class/System.Core/:
* net_4_0_System.Core.dll.sources: add PLinq sources
In class/System.Core/System.Linq/:
* OrderedParallelQuery.cs:
* ParallelEnumerable.cs:
* ParallelExecuter.cs:
* ParallelPartitioner.cs:
* ParallelQuery.cs:
* ParallelQueryEnumerator.cs: First check-in of PLinq
In class/System.Core/System.Linq/Internal/:
* AggregationList.cs:
* ConcurrentGrouping.cs:
* ConcurrentLookup.cs:
* OrderingEnumerator.cs:
* ParallelQuickSort.cs:
* RangeList.cs:
* RepeatList.cs:
* ReverseList.cs:
* StripPartitioner.cs: Initial check-in of PLinq
In class/System.Core/System.Linq/Internal/QueryNodes/:
* QueryBaseNode.cs:
* QueryCastNode.cs:
* QueryChildNode.cs:
* QueryConcatNode.cs:
* QueryDefaultEmptyNode.cs:
* QueryGroupByNode.cs:
* QueryMuxNode.cs:
* QueryOptionNode.cs:
* QueryOrderByNode.cs:
* QueryOrderGuardNode.cs:
* QueryOrderedStreamNode.cs:
* QueryReverseNode.cs:
* QuerySelectManyNode.cs:
* QuerySelectNode.cs:
* QuerySetNode.cs:
* QueryStartNode.cs:
* QueryStreamNode.cs:
* QueryWhereNode.cs:
* QueryZipNode.cs:
* WrapHelper.cs: Initial check-in of PLinq
In class/System.Core/System.Linq/Internal/Visitors/:
* INodeVisitor.cs:
* IVisitableNode.cs:
* QueryCheckerVisitor.cs:
* QueryOptions.cs: First check-in of PLinq
svn path=/trunk/mcs/; revision=155533
2010-04-15 19:01:50 +00:00
Jérémie Laval
ea2b4c0352
2010-04-15 Jérémie Laval <[email protected] >
...
In class/System.Core/System.Linq/:
* ParallelExecutionMode.cs:
* ParallelMergeOptions.cs: Initial check-in of PLinq (enum)
In class/System.Core/System.Linq/Internal/QueryNodes/:
* SetInclusion.cs: Initial check-in of PLinq (enum)
svn path=/trunk/mcs/; revision=155532
2010-04-15 19:01:37 +00:00
Miguel de Icaza
071f495d6a
2010-04-12 Miguel de Icaza <[email protected] >
...
* Enumerable.cs: Jumbo patch that inlines code, mainly for the AOT
scenario where we our compiler cant infer the extra layer of
indirection of a lambda function.
But additionally, since we lack support for our JIT to inline
intermediate delegate calls, it should save memory and run
faster.
svn path=/trunk/mcs/; revision=155280
2010-04-13 02:49:19 +00:00
Jb Evain
65bf9e04bb
2010-04-07 Jb Evain <[email protected] >
...
* EnumerableExecutor.cs: make ctor protected.
svn path=/trunk/mcs/; revision=154958
2010-04-07 13:53:37 +00:00
Jb Evain
4ddfad2f3b
2010-04-07 Jb Evain <[email protected] >
...
* EnumerableQuery_T.cs: implement.
svn path=/trunk/mcs/; revision=154956
2010-04-07 13:50:35 +00:00
Jb Evain
ca2e07776c
2010-04-07 Jb Evain <[email protected] >
...
* EnumerableQuery.cs: make ctor protected.
svn path=/trunk/mcs/; revision=154955
2010-04-07 13:50:11 +00:00