Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Tags: quantcast/g2

Tags

v0.6.7

Toggle v0.6.7's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Sync/Wait for processing handler (#14)

Use a key-specific wait for delayed additions into the handler map.

v0.6.6

Toggle v0.6.6's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
fix receive race (#13)

Move close and recycle of req into waiter's code

v0.6.5

Toggle v0.6.5's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Fix send/receive synchronization race condition (#12)

* Fix send/receive synchronization race condition

* restore cleanup and submitJob name

* Rename submitJob

* Add locking of job submission to single-thread it

* Add some logging

* Fix premature dequeuing issue

* Remove extra logging

* Remove submit locks

* Remove drain debug logging

* rename constants and change queue size to 8

v0.6.4

Toggle v0.6.4's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Fix client tests (#8)

* Fix client tests

* Reverted to use of NewConnected
* Fixed arguments on some New Client calls

* Optimize conn checking in readLoop

* Add error handling for gearmanClient.Do() call

v0.6.3

Toggle v0.6.3's commit message
switch ssmccoy to quantcast.

v0.6.2

Toggle v0.6.2's commit message
client: Remove unnecessary dereferencing

Removed the unnecessary dereferencing of the pointer to the connection
struct.

v0.6.1

Toggle v0.6.1's commit message
client: major overhaul of buffer management

This still maintains a double-copy which is less than ideal, but is
significantly faster as a result because the target region which holds
the `data` parameter to the response is now dynamically allocated so as
to avoid unnecessary copies and dynamic/exponential allocation.

Further cleaned-up the parsing of the response and removed the
`decodeResponse` function which had lots of funky logic around wierd
buffer management.

Abstracted the reconnect behavior out into a separate method so it can
be reused whether the header or buffer are being read.

v0.6.0

Toggle v0.6.0's commit message
client: gearman client now faster and better

Eliminated the strange usage of in favor of using channels. Removed the
redundant `processLoop` goroutine, the `readLoop` now inlines the
processing (it was serial anyway!). Switched to the use of threadsafe
memory object pools for request and response objects, and now allows
pipelining if multiple goroutines are making requests at once.

Removed a lot of redundancy in the code, and eliminated the use of the
strange `responseHandlerMap` in favor of a concurrent map for holding
callbacks on a per-handler basis.

Refactored the `request` type such that it now uses a builder pattern,
and now itself keeps a small byte buffer for each request which is
reused when parameters are attached to requests. Streamlined the
formatting of outbound messages such that they are encoded as they are
written to the output buffer, to reduce the number of copies involved in
most operations.

Eliminated the strange blind-read loop which pretended it had no idea
how large of a buffer it would need to allocate to read a response, and
now allocates a buffer for each payload, the size of the payload as
specified by the server, respectively.

v0.0.1

Toggle v0.0.1's commit message
client: gearman client now faster and better

Eliminated the strange usage of in favor of using channels. Removed the
redundant `processLoop` goroutine, the `readLoop` now inlines the
processing (it was serial anyway!). Switched to the use of threadsafe
memory object pools for request and response objects, and now allows
pipelining if multiple goroutines are making requests at once.

Removed a lot of redundancy in the code, and eliminated the use of the
strange `responseHandlerMap` in favor of a concurrent map for holding
callbacks on a per-handler basis.

Refactored the `request` type such that it now uses a builder pattern,
and now itself keeps a small byte buffer for each request which is
reused when parameters are attached to requests. Streamlined the
formatting of outbound messages such that they are encoded as they are
written to the output buffer, to reduce the number of copies involved in
most operations.

Eliminated the strange blind-read loop which pretended it had no idea
how large of a buffer it would need to allocate to read a response, and
now allocates a buffer for each payload, the size of the payload as
specified by the server, respectively.

0.5.1

Toggle 0.5.1's commit message
Release 0.5.1

- Fixes robfig/cron bug that causes multiple invocation of scheduled function.
- Build binary inside Alpine Docker image.