回答編集履歴
5
順序要件に対応
test
CHANGED
@@ -1 +1,11 @@
|
|
1
1
|
`searchList.AsParallel().Intersect(targetList.AsParallel()).ToList();`はどうでしょう?
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
順序要件を見逃していたので。
|
6
|
+
|
7
|
+
`targetList.AsParallel().Intersect(searchList.AsParallel()).ToList();`
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
何というか振りかえると、Whereでよかったんじゃないかとか、即時にリスト化しなきゃならないのかとか、考えるべきことは色々あるように思います。
|
4
ToList
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
`searchList.AsParallel().Intersect(targetList);`はどうでしょう?
|
1
|
+
`searchList.AsParallel().Intersect(targetList.AsParallel()).ToList();`はどうでしょう?
|
3
plinq
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
`searchList.Intersect(targetList);`はどうでしょう?
|
1
|
+
`searchList.AsParallel().Intersect(targetList);`はどうでしょう?
|
2
書き直し
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
`Intersect()`はどうでしょう?
|
1
|
+
`searchList.Intersect(targetList);`はどうでしょう?
|
1
書き直し
test
CHANGED
File without changes
|