Commit graph

140 commits

Author SHA1 Message Date
Johan Andrén
30423e3b84
Ported ActorBenchmark to typed (#24815) 2018-04-06 08:56:34 +02:00
Jimin Hsieh
2c2b8ba001 Remove some of Unused import warning (#24650) 2018-03-16 12:08:29 +01:00
Konrad `ktoso` Malawski
563c7fbcf0 Issue 24594: Integration with sbt-headers and initial header population 2018-03-13 15:45:55 +01:00
kerr
97ca714d17 = all remove semicolons "bye-bye semicolon" (#24659) 2018-03-06 09:53:28 +09:00
Konrad Malawski
1574faf180 +ben add DirectBufferPoolBenchmark, just for reference 2018-03-01 22:16:18 +09:00
Patrik Nordwall
5e80bd97f2 Stop unused Artery outbound streams, #23967
* fix memory leak in SystemMessageDelivery
* initial set of tests for idle outbound associations, credit to mboogerd
* close inbound compression when quarantined, #23967
  * make sure compressions for quarantined are removed in case they are lingering around
  * also means that advertise will not be done for quarantined
  * remove tombstone in InboundCompressions
* simplify async callbacks by using invokeWithFeedback
* compression for old incarnation, #24400
  * it was fixed by the other previous changes
  * also confirmed by running the SimpleClusterApp with TCP
    as described in the ticket
* test with tcp and tls-tcp transport
  * handle the stop signals differently for tcp transport because they
    are converted to StreamTcpException
* cancel timers on shutdown
* share the top-level FR for all Association instances
* use linked queue for control and large streams, less memory usage
* remove quarantined idle Association completely after a configured delay
  * note that shallow Association instances may still lingering in the
    heap because of cached references from RemoteActorRef, which may
    be cached by LruBoundedCache (used by resolve actor ref).
    Those are small, since the queues have been removed, and the cache
    is bounded.
2018-02-21 11:59:18 +01:00
Patrik Nordwall
0d222906f4 Prepare Artery for alternative TCP transport, #24390
* Refactoring to separate the Aeron specific things, ArteryAeronUdpTransport
* move Aeron specific classes to akka.remote.artery.aeron package
* move Version to ArterySettings, and describe strategy for envelope header changes
2018-02-20 16:02:57 +01:00
Konrad `ktoso` Malawski
800923522a
=str #24413 make sure to check if available to push (#24434)
* =str #24413 make sure to check if available to push

* address review

* Update SourceRefBenchmark.scala
2018-01-30 00:27:40 +09:00
Christopher Batey
009214ae07
Update copyright to 2018 (#24241) 2018-01-04 17:26:29 +00:00
Johan Andrén
3dda73c1ea
Async callback memory leak fix #24046 2017-12-05 14:07:10 +01:00
Martynas Mickevičius
82ca8a2cc7 Port build to SBT 1.x (#23850)
* Port build to SBT 1.x

* Fix multinode tests, always enable genjavadoc bootstrap
2017-10-30 10:13:13 +09:00
Arnout Engelen
282a9b65f2 Update to scalariform 1.8.1 (#23806) 2017-10-15 13:58:24 -05:00
Arnout Engelen
b1df13d4d4 Update scalariform (#23778) (#23783) 2017-10-06 10:30:28 +02:00
Guido Medina
9df5d80268 Java 9 Unsafe access to String value type mismatch. (#23710)
It needs to account for both Java 8 and 9 where the types are char[] and byte[] respectively.
2017-09-25 23:22:49 +09:00
Patrik Nordwall
120e248e6f Merge pull request #23626 from akka/wip-21732-rewrite-filesource-with-java-nio-patriknw
=str 21732 rewrite file souce with NIO and GraphStagу
2017-09-12 16:30:48 +02:00
László van den Hoek
63d9ec1c87 More consistency between UniformFanInShape and UniformFanOutShape (#23321)
* add+use UniformFanOutShape#outSeq for consistency

UniformFanInShape has inSeq, whereas UniformFanOutShape has outArray.
There's probably no good reason for this discrepancy.

* 2.5.3 is gold, deprecation would start in 2.5.4

* specialize in/outlets where possible

* review comments, binary compatibility

* optimize imports

* use Array copy internally

* give FanInShape1N the deprecation treatment

also, s/T\d/I\d/g

* delete ignored file

* process additional review comments

* make inArray fully private everywhere

* add benchmark heavy on the use of FanInShape.in()

* benchmark says: do not use Array for most n

* add JavaDoc to un-final'ed defs to not override

* change deprecated val to def; do not use it

* process patriknw's review comments
2017-09-12 16:14:20 +02:00
Alexander Golubev
000ed93576 =str 21732 rewrite file souce with NIO and GraphStagу
add MiMa excludes and additional test

add benchmark and move eclusions to 2.5.4

add future completion on stream termination
2017-09-12 14:54:41 +02:00
Patrik Nordwall
fa4ce6bbe7 new actor benchmark (#23489)
* and array based mailbox in bench project
2017-09-11 16:57:57 +02:00
Patrik Nordwall
9abe5ae092 Merge pull request #23473 from akka/wip-immutableintmap-√
Extensibility, performance, and documentation improvements to AffinityPool
2017-08-10 08:36:17 +02:00
Viktor Klang
6f5a89d3d5 Modularizes the queue-selector in AffinityPool 2017-08-10 00:01:50 +02:00
Patrik Nordwall
945ade245e Add PartitonHub, #21880
* FixedSizePartitionHub in Artery
* expose consumer queue size
2017-08-09 17:00:35 +02:00
Viktor Klang
912a6f33e9 Optimizations and correctness fixes to the AffinityPool
Notably:
* Reimplementation of ImmutableIntMap for much faster performance
* Benchmark for ImmutableIntMap added to akka-bench-jmh
* Many small performance improvements to the impl of AffinityPool
* Correctness fixes for pool lifecycle management
2017-07-20 21:59:28 +09:00
Zahari Dichev
4d45064296 Add AffinityPool which pins actors to threads (#23104) 2017-07-07 13:36:26 +02:00
Arnout Engelen
39f0a982b2 Document how to run JMH benchmarks (#23262) 2017-07-03 07:05:50 -07:00
Hawstein
b3d00afdd1 Move ConstantFun to akka.util, #22813 2017-05-10 18:00:42 +02:00
Patrik Nordwall
650e7b9a7f Merge pull request #22583 from akka/wip-sub-stream-bench-patriknw
add sub-stream benchmark
2017-03-31 16:29:50 +02:00
Björn Antonsson
f8b4fb55ca Remove use of deprecated Scala features #22581 2017-03-27 19:05:54 +03:00
Patrik Nordwall
b51e241126 add sub-stream benchmark
* and remove invalid graph_with_nested_imports
2017-03-17 15:20:33 +01:00
Patrik Nordwall
569175ac62 Improve ForkJoinActorBenchmark
* more messages in flight

* additional cleanup
2017-03-16 20:48:55 +01:00
Johan Andrén
57bce6ad1f Benchmark for actor throughput with FJP #18262
1-to-1 actor per core bench, avoiding to spend time in string equals
2017-03-16 20:45:10 +01:00
Martynas Mickevičius
11c513fda7 Merge pull request #22542 from 2m/wip-resize-mat-connections-2m
#22429 Resize connections array when needed
2017-03-13 19:43:50 +02:00
Johan Andrén
7a0e5b31f8 Avoid Array.ofDim where possible #22516 2017-03-13 17:49:45 +01:00
Martynas Mickevičius
4bb283b458 #22429 Resize connections array when needed 2017-03-13 09:49:25 +02:00
Patrik Nordwall
3554ad7243 Merge branch 'master' into wip-traversal-oriented-layout-master-patriknw 2017-03-10 18:16:44 +01:00
Konrad `ktoso` Malawski
e2a15a2a58 =str use OptionVal in Traversal building 2017-03-10 11:45:26 +01:00
Konrad `ktoso` Malawski
99705d1ccc =str #22437 replace require() with if calls to avoid fn allocs 2017-03-10 10:44:58 +01:00
Konrad `ktoso` Malawski
67fd0cc0b6 =str #22438 make use of OptionVal in materializer internals 2017-03-10 10:44:43 +01:00
Konrad `ktoso` Malawski
4c0d6ddb7a =ben,str make sure to return values in benchmarks 2017-03-10 10:29:30 +01:00
Johan Andrén
c028b550f2 Low level interpreter tests working without GraphAssembly #22423 2017-03-07 17:06:41 +01:00
Konrad `ktoso` Malawski
e47dbda154 =str #22448 rewrite Source.empty to GraphStage 2017-03-07 15:13:49 +01:00
Endre Sándor Varga
ba63c7af8d New materializer and layout 2017-03-01 16:18:55 +01:00
Konrad `ktoso` Malawski
dcd8cea32e #21475 moving compressions ownership to Decoder (#22047)
* WIP early preview of moving compressions ownership to Decoder

* Compression table created in transport, but owned by Decoder
Added test for restart of inbound stream

* =art snapshot not needed in HeavyHitters since owned by Decoder
2017-01-13 10:33:55 +01:00
Philippus Baalman
6c7085252a extended copyright into 2017 2017-01-04 17:37:15 +01:00
monkey-mas
c38d3850a2 =act improve ByteString#dropRight(...) (#21439)
#21439: =act improve ByteString#dropRight(...)
2016-12-06 15:51:11 +01:00
Björn Antonsson
8d05592e2e =rem Streamline Artery encoding of metadata to avoid allocations
* Change RemoteInstrument API to work with ByteBuffers
* Remove the MetadataMap since serialization is done in buffer
2016-12-06 10:05:27 +01:00
Björn Antonsson
913c166f88 =jmh Clean up Artery CodecBenchmark
* Make decoding release the envelope so it doesn't leak memory
* Create two different configurations, Standard and RemoteInstrument
* Create Serilaizer and RemoteInstrument that doesn't allocate memory
2016-12-06 10:05:27 +01:00
Johan Andrén
50370c69a3 ByteString.indexOf optimized to speed up framing stage #21530 2016-10-19 11:26:50 +02:00
Konrad Malawski
a6a5556a8f Remove Akka-HTTP sources from akka/akka, moving to akka/akka-http! (#21690) 2016-10-18 15:17:17 +02:00
monkey-mas
1a6fb98e78 =act add benchmark of ByteString#take(...) (#21540)
* =act add benchmark of ByteString#take(...)

Added a benchmark code to measure use-case performance.

ref. https://github.com/akka/akka/pull/21438

* Corrected benchmark code
2016-10-17 13:11:26 +02:00
monkey-mas
19dbe9a487 =act clean up ByteString#drop(...) (#21440)
* =act clean up ByteString#drop(...)

Current implementation has a good algorithm but seems a little bit complicated.

Clening-up does not suffer the performance (actually seems to have the better
performance when dropping(N-1)) where N is the length, and is easy to understand
almost the same algorithm now.

* Change private[akka] to priavte

* Rename go(...) and some variables

They should be easy for us to understand what they are.

* Add benchmark of ByteString#drop(...)
2016-10-05 09:25:34 -05:00