Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Projection Perf/logging enhancements #130

Merged
merged 3 commits into from
May 14, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ The `Unreleased` section name is replaced by the expected version of next releas
### Added
### Changed

- `Equinox.Projection` performance work based on [`dotnet new eqxsync` template](https://github.com/jet/dotnet-templates/pull/16) [#130](https://github.com/jet/equinox/pull/130)
- Reorganized `Equinox.Projection` to be a single-file concern [#129](https://github.com/jet/equinox/pull/129)

### Removed
Expand Down
1 change: 0 additions & 1 deletion src/Equinox.Projection/Equinox.Projection.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<WarningLevel>5</WarningLevel>
<IsTestProject>false</IsTestProject>
<DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference>
<DisableImplicitSystemValueTupleReference>true</DisableImplicitSystemValueTupleReference>
<GenerateDocumentationFile Condition=" '$(Configuration)' == 'Release' ">true</GenerateDocumentationFile>
<DefineConstants Condition=" '$(TargetFramework)' == 'net461' ">$(DefineConstants);NET461</DefineConstants>
</PropertyGroup>
Expand Down
9 changes: 0 additions & 9 deletions src/Equinox.Projection/Infrastructure.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,9 @@
module Equinox.Projection.Infrastructure

open System
open System.Collections.Concurrent
open System.Threading
open System.Threading.Tasks

module ConcurrentQueue =
let drain handle (xs : ConcurrentQueue<_>) =
let rec aux () =
match xs.TryDequeue() with
| false, _ -> ()
| true, x -> handle x; aux ()
aux ()

#if NET461
module Array =
let tryHead (array : 'T[]) =
Expand Down
Loading