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
Jb Evain
5729f636e4
2010-04-06 Jb Evain <[email protected] >
...
* QueryableEnumerable.cs: make TransformQueryable work on net_4_0.
svn path=/trunk/mcs/; revision=154854
2010-04-06 15:18:55 +00:00
Jb Evain
c69d983c54
2010-04-06 Jb Evain <[email protected] >
...
* QueryableTransformer.cs: use factory method that work for all
ET implementations.
svn path=/trunk/mcs/; revision=154852
2010-04-06 15:17:55 +00:00
Jb Evain
e800d606de
2010-03-30 Jb Evain <[email protected] >
...
* Queryable.cs: implement Zip for net_4_0.
svn path=/trunk/mcs/; revision=154460
2010-03-30 15:06:54 +00:00
Jb Evain
67cf0f1e9a
2010-03-24 Jb Evain <[email protected] >
...
* SortSequenceContext.cs: Fix OrderByDescending stability.
Based on a patch by Richard Kiene <[email protected] >.
svn path=/trunk/mcs/; revision=154154
2010-03-24 17:39:19 +00:00
Marek Safar
923e44a3cf
2010-02-23 Marek Safar <[email protected] >
...
* Enumerable.cs: Implement Zip.
svn path=/trunk/mcs/; revision=152260
2010-02-23 10:43:41 +00:00
Marek Safar
72cf126570
Better exception message.
...
svn path=/trunk/mcs/; revision=150391
2010-01-28 19:22:58 +00:00
Jb Evain
8ce6a8ec16
2010-01-25 Jb Evain <[email protected] >
...
* QueryableTransformer.cs (ReplaceQueryableMethod): fix
exception message.
svn path=/trunk/mcs/; revision=150132
2010-01-25 15:46:31 +00:00
Marek Safar
eb03d1b17b
2009-12-03 Marek Safar <[email protected] >
...
* EnumerableExecutor.cs, EnumerableExecutor_T.cs, EnumerableQuery.cs
EnumerableQuery_T.cs: Implemented.
svn path=/trunk/mcs/; revision=147535
2009-12-03 08:47:36 +00:00
Jb Evain
7a93057af4
in System.Linq.Expressions:
...
2009-11-14 Jb Evain <[email protected] >
* ExpressionTransformer.cs: adjust return type of all
tranformation methods to make the transformer actually
useful.
in System.Linq:
2009-11-14 Jb Evain <[email protected] >
* QueryableTransformer: adjust to latest ExpressionTransformer
changes.
svn path=/trunk/mcs/; revision=146208
2009-11-14 15:47:07 +00:00
Eric Maupin
fe497ee144
* System.Linq/Lookup.cs: Support null keys
...
* System.Linq/Enumerable.cs: Support null keys
svn path=/trunk/mcs/; revision=146039
2009-11-12 13:56:46 +00:00
Marek Safar
c80f320a65
Add type variance
...
svn path=/trunk/mcs/; revision=144456
2009-10-20 13:09:14 +00:00
Marek Safar
bf5999c08d
Unused variable.
...
svn path=/trunk/mcs/; revision=143978
2009-10-12 19:12:58 +00:00
Marek Safar
e7ff8ad2e7
2009-10-08 Marek Safar <[email protected] >
...
* Enumerable.cs (Empty): Optimized allocation.
svn path=/trunk/mcs/; revision=143778
2009-10-08 15:39:40 +00:00
Marek Safar
7b3e4e46ca
Prepared for net_4_0_bootsrap
...
svn path=/trunk/mcs/; revision=141760
2009-09-11 13:12:10 +00:00
Marek Safar
ed47ca25ea
2009-08-07 Marek Safar <[email protected] >
...
* Enumerable.cs (Skip): Optimized and fixed int.MaxValue overflow.
svn path=/trunk/mcs/; revision=139558
2009-08-07 10:44:50 +00:00
Jb Evain
43f59cd5b9
2009-07-20 Jb Evain <[email protected] >
...
* Lookup.cs: avoid a double dictionary lookup on the indexer.
svn path=/trunk/mcs/; revision=138194
2009-07-20 06:17:06 +00:00
Gonzalo Paniagua Javier
f8ca363886
2009-07-19 Gonzalo Paniagua Javier <[email protected] >
...
* Lookup.cs: when there are no matching elements, return an empty
enumerable. Fixes bug #523386 .
svn path=/trunk/mcs/; revision=138190
2009-07-20 02:45:47 +00:00
Marek Safar
3a5a3cf1d3
2009-07-02 Marek Safar <[email protected] >
...
* net_4_0_System.Core.dll.sources: New file.
svn path=/trunk/mcs/; revision=137278
2009-07-02 11:57:13 +00:00
Jb Evain
5877fe65ac
2009-05-18 Jb Evain <[email protected] >
...
* Enumerable.cs (Max, Min): fix generic versions.
svn path=/trunk/mcs/; revision=134333
2009-05-18 17:08:43 +00:00