Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
shrapnel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
shrapnel
Commits
94edc3b3
Commit
94edc3b3
authored
Jul 11, 2012
by
Sam Rushing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new 'Advantages' section...
parent
5835454d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
README.rst
README.rst
+30
-0
No files found.
README.rst
View file @
94edc3b3
...
...
@@ -19,6 +19,7 @@ Features
* On top, synchronous API for straight-line, simple code.
* Highly scalable - tens or hundreds of thousands of connections/threads.
* Thread synchronization primitives, like mutexes, semaphores, etc...
* with_timeout(): wrap any funcall with a timeout.
* Wait on kqueue events like file/directory changes, signals, processes, etc... [kqueue only]
* DNS stub resolver (full-fledged resolver may be forthcoming)
* HTTP server and client
...
...
@@ -26,6 +27,35 @@ Features
* other protocols/codecs: ldap, asn1, ftp, mysql, postgres, AMQP_.
* `MIT License`_.
Advantages
==========
Compared to other concurrency packages available for Python,
Shrapnel gives you:
* Speed and Efficiency: the entire scheduler, poller, socket layer,
synchronization objects, etc... are written in Cython, with an
emphasis on performance and low memory usage.
* Stock Python: Shrapnel works with out-of-the-box CPython [2.X]. No
special variants of Python are needed, it will even work with your
OS's OEM python installation. So you can use all the external
libraries/modules you've come to rely on.
* No Callbacks: no need to cuisinart your application into a thousand
callbacks. No need to decompose every action into a state
machine. Write simple, performant code now without having to send
your programmers to class.
* Drop to Cython for speed: all the capabilities of the system are
available from Cython, so you can e.g. write a server entirely in
Cython for speed. You can interface with external libraries, and
do thread switches from Cython or C. It's even possible to have
external C code call back into shrapnel. This makes it easy to
prototype your application in Python, and then push only the hot
spots into Cython.
* Timeouts: Shrapnel provides a general timeout mechanism that can be
used to wrap any function call with a timeout.
* Profiler: Thread-aware profiler generates HTML reports.
Tutorial
========
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment