Skip to content
Permalink
Branch: master
Commits on Sep 26, 2018
  1. Optimize IOrderedEnumerable.Take(1) (dotnet/corefx#32389)

    AndreyAkinshin authored and stephentoub committed Sep 26, 2018
    Calls like array.OrderBy(x => x).Take(1) use EnumerableSorter.ElementAt that
    invokes QuickSelect. Take(1) is just the Minimum for OrderedEnumerable and can
    be implemented more efficiently. The Minimum-based implementation has a big
    impact on the worst case time complexity: now it's O(N) instead of O(N^2).
    
    Commit migrated from dotnet/corefx@f3b56d1
Commits on Jun 18, 2018
  1. mach_absolute_time as the primary clock source on macOS (corefxdotnet…

    AndreyAkinshin authored and stephentoub committed Jun 18, 2018
    …/coreclr#30391) (dotnet/coreclr#18505)
    
    macOS 10.12+ supports clock_gettime (HAVE_CLOCK_MONOTONIC is defined)
    However, mach_absolute_time has better resolution and should be used
    as the primary clock source.
    
    Commit migrated from dotnet/coreclr@a889237
Commits on Jun 17, 2018
  1. mach_absolute_time as the primary clock source on macOS (dotnet/coref…

    AndreyAkinshin authored and stephentoub committed Jun 17, 2018
    …x#30391) (dotnet/corefx#30457)
    
    macOS 10.12+ supports clock_gettime (HAVE_CLOCK_MONOTONIC is defined)
    However, mach_absolute_time has better resolution and should be used
    as the primary clock source.
    
    Commit migrated from dotnet/corefx@0b0a9d2
Commits on Mar 30, 2017
  1. Fix magic number explanation in filetime.cpp (dotnet/coreclr#10582)

    AndreyAkinshin authored and janvorli committed Mar 30, 2017
    89 * 366 + 280 * 365 equals to 134774 (not 134744)
    
    Commit migrated from dotnet/coreclr@44d4a46
Commits on Mar 3, 2017
Commits on Aug 12, 2015
  1. Fix a bug with disappeared cast to byte in numeric binary expressions

    AndreyAkinshin committed Aug 3, 2015
    Lowering::IndirsAreEquivalent doesn't check if the 2 indirections have the same type and because of that a RMW style instruction is generated instead of the expected
    
    movzx    rax, byte  ptr [7FFA61024742h]
    xor      eax, 33
    mov      word  ptr [7FFA61024742h], ax
    
    This behavior was fixed by adding an additional check to IndirsAreEquivalent (implementation of the mikedn's approach: dotnet/coreclr#1329 (comment)).
    
    Fix dotnet/coreclr#1323.
    
    
    Commit migrated from dotnet/coreclr@3bfbb9b
Commits on May 12, 2015
Commits on May 4, 2015
Commits on Mar 31, 2015
  1. Disable gtCostEx and gtCostSz reporting in compiler.cpp

    AndreyAkinshin committed Mar 18, 2015
    If you change line
    
    in jit.h and set MEASURE_NODE_SIZE=1, you will get a build error like this:
    
    coreclr\src\jit\compiler.cpp(888): error C2248: 'GenTree::_gtCostEx' : cannot access private member declared in class 'GenTree' [coreclr\binaries\intermediates\Windows_NT.x64.debug\src\jit\ClrJit.vcxproj]
    coreclr\src\jit\compiler.cpp(889): error C2248: 'GenTree::_gtCostSz' : cannot access private member declared in class 'GenTree' [coreclr\binaries\intermediates\Windows_NT.x64.debug\src\jit\ClrJit.vcxproj]
    
    Solution: disabling gtCostEx and gtCostSz reporting in compiler.cpp
    
    See also: dotnet/coreclr#493 (comment)
    
    
    Commit migrated from dotnet/coreclr@af7cb51
Commits on Feb 12, 2015
  1. Typo fix in objecthandle.cpp

    AndreyAkinshin committed Feb 12, 2015
    Commit migrated from dotnet/coreclr@b913917
Commits on Dec 3, 2014
  1. Named consts in PLINQ

    AndreyAkinshin committed Dec 3, 2014
    Commit migrated from dotnet/corefx@016bc2f
Commits on Nov 25, 2014
  1. Fast implementation of Hamming weight

    AndreyAkinshin committed Nov 25, 2014
    The target method: System.Reflection.Internal.BitArithmetic.CountBits
    Old implementation uses 24 arithmetic operations
    New fast implementation uses 12 arithmetic operations
    
    
    Commit migrated from dotnet/corefx@f357187
Commits on Nov 12, 2014
  1. Removing redundant comparison with "null" ((!(obj is Vector)) is supe…

    AndreyAkinshin committed Nov 12, 2014
    …rset condition for (obj == null))
    
    Commit migrated from dotnet/corefx@b8c99c0
You can’t perform that action at this time.