Commit Graph

3176 Commits

Author SHA1 Message Date
Michael Snoyman
01b855969b CssBuilder 2012-10-11 07:35:25 +02:00
Michael Snoyman
57b8748a3d lifted-base 0.2 2012-10-11 06:41:14 +02:00
Michael Snoyman
ff46de28b5 network-conduit 0.6 2012-10-04 18:14:30 +02:00
Michael Snoyman
dc0c89574a version bump 2012-10-04 16:44:36 +02:00
Michael Snoyman
45e54ff2bb vector 0.10 2012-10-04 16:44:13 +02:00
Michael Snoyman
34f2f8cb13 unix-compat bump 2012-10-04 15:44:42 +02:00
Michael Snoyman
4ea4cefaf2 Remove unnecessary debug output 2012-10-03 22:45:08 +02:00
Michael Snoyman
e28f330711 path-pieces dependency bump 2012-09-29 22:29:17 +02:00
Michael Snoyman
08e123c0e6 yesod version prints yesod-core and yesod version numbers 2012-09-29 20:29:01 +02:00
Michael Snoyman
bedabb4038 New yesod-platform 2012-09-27 01:06:32 +02:00
Michael Snoyman
fd0cdcfc21 Removed unnecessary conditionals 2012-09-24 15:58:45 +02:00
Michael Snoyman
8793cffe47 warpEnv 2012-09-24 15:57:01 +02:00
Michael Snoyman
48357a6fd3 Use shouldLog in scaffold 2012-09-24 15:52:17 +02:00
Michael Snoyman
a30cc74087 Export log*S (#405) 2012-09-23 13:44:04 +02:00
Greg Weber
dcc2d138f4 Merge pull request #425 from Tarrasch/master
Improve documentation
2012-09-22 20:57:23 -07:00
Arash Rouhani
e35124f96f Use haddock for Yesod.Form.Types.Field 2012-09-22 18:58:34 -04:00
Michael Snoyman
34f2942c54 Add deprecation for messageLogger (#405) 2012-09-21 17:15:21 +03:00
Michael Snoyman
7bd06e9b7b LogSource (#405) 2012-09-21 15:01:07 +03:00
Michael Snoyman
cf4fed8cb9 Precede null path segments with dashes (#421) 2012-09-21 14:23:38 +03:00
Hiromi Ishii
5f93e24276 resolved deps hell 2012-09-20 15:41:04 +09:00
Michael Snoyman
c6aa648884 Merge branch 'master' of github.com:yesodweb/yesod 2012-09-19 09:06:03 +03:00
Michael Snoyman
0c68f46762 MonadLift instance for AForm 2012-09-19 09:03:53 +03:00
Michael Snoyman
fef3024d30 network 2.4 2012-09-19 09:02:58 +03:00
Michael Snoyman
4513c0029b Merge pull request #423 from lbolla/doc-change
Fix documentation.
2012-09-18 10:53:47 -07:00
John Lenz
f8f1377d53 yesod-test: add support for multiple cookies 2012-09-17 00:52:45 -05:00
Lorenzo Bolla
0a1f035ff8 Fix documentation.
Fix installation instructions in README.md when installing from cloned repo.
2012-09-16 16:06:55 +01:00
Michael Snoyman
3b8b77841c Updated yesod-platform 2012-09-11 09:37:37 +03:00
Michael Snoyman
a6ce05609d Version bumps 2012-09-11 07:17:23 +03:00
Michael Snoyman
818f2ecdf5 resourcet 0.4 2012-09-10 17:06:32 +03:00
Felipe Lessa
b2a9beba3c Use a cache for session cookie's expiration time.
The following HelloWorld app was used as benchmark:

  data HelloWorld = HelloWorld
  mkYesod "HelloWorld" [parseRoutes|
    / HomeR GET
  |]

  instance Yesod HelloWorld where
    -- makeSessionBackend = const $ return Nothing

  getHomeR = return . RepPlain . toContent $ "Hello World!"

  main :: IO ()
  main = warp 8080 HelloWorld

The benchmark was tested with httperf under the following
environments:

  [vanilla-nosession] Released yesod-core 1.1.1.1, but without sessions.

  [vanilla-session] Released yesod-core 1.1.1.1 (with sessions).

  [faster-session-1] With patch 065e33a, "Faster, leaner
  implementation of putTime/getTime".

  [faster-session-2] With this commit.

Performance results:

  A) Testing with:
       httperf --hog --client=0/1 --server=localhost \
               --port=8080 --uri=/ --rate=1000 \
               --send-buffer=4096 --recv-buffer=16384 \
               --num-conns=100 --wsess=1000,60,1 \
               --burst-length=20 --session-cookie

     Results:
       vanilla-nosession: 19187.7 req/s (0.1 ms/req)
       vanilla-session:    2523.3 req/s (0.4 ms/req)
       faster-session-1:   2933.5 req/s (0.3 ms/req)
       faster-session-2:   2957.5 req/s (0.3 ms/req)

     This test benchmarks both saving and loading the session.
     Interestingly, this commit provides only a small performance
     increase.

  B) Testing with:
       httperf --hog --client=0/1 --server=localhost \
               --port=8080 --uri=/ --rate=1000 \
               --send-buffer=4096 --recv-buffer=16384 \
               --num-conns=100 --num-calls=1000 \
               --burst-length=20

     Results:
       vanilla-nosession: 43548.7 req/s (0.0 ms/req)
       vanilla-session:    3609.4 req/s (0.3 ms/req)
       faster-session-1:   3454.9 req/s (0.3 ms/req)
       faster-session-2:   3786.9 req/s (0.3 ms/req)

     This test benchmarks only saving the session.  Strangely,
     faster-session-1 was worse than vanilla-session (while
     isolated tests show that the new putTime should be +70x
     faster).  However, there is a non-negligible performance
     increase on faster-session-2.
2012-09-05 01:35:10 -03:00
Felipe Lessa
065e33a3d1 Faster, leaner implementation of putTime/getTime.
Benchmark on my computer (per call, includes runPut/runGet):

    old putTime: 5658 ns +/- 224ns
    new putTime:  821 ns +/-  24ns (7x faster)

    old getTime: 7228 ns +/- 126ns
    new getTime:   99 ns +/-   4ns (73x faster!!)

Besides, the old format used 25 raw bytes (33.3 bytes on the
base64 output), while the new one uses 8 bytes (10.6 bytes on the
base64 output).
2012-09-05 00:41:54 -03:00
Michael
498d22714b checkMMod to checkMMap (#416) 2012-09-04 17:57:05 +03:00
Michael Snoyman
4cce1d5a8f Merge remote-tracking branch 'origin/master'
Conflicts:
	yesod-core/yesod-core.cabal
2012-09-03 20:49:50 +03:00
Felipe Lessa
865281d241 yesod-core: Bump version to 1.1.1.1.
Where do I redeem my prize?
2012-08-27 14:50:11 -03:00
Felipe Lessa
0d95e6917d yesod-core: Whitespace. 2012-08-27 14:50:04 -03:00
Felipe Lessa
5b19865c7a yesod-core: In handlerToIO, really avoid keeping old handler data in memory. 2012-08-27 10:20:17 -03:00
Hiromi Ishii
933ad50ac3 caught up with yesod 1.1 2012-08-25 14:54:59 +09:00
Michael Snoyman
dea07e8d4d Merge pull request #412 from yogsototh/patch-1
Added example on AddHandler to avoid confusion
2012-08-23 08:17:34 -07:00
Yann Esposito
667d8405a8 Added example on AddHandler to avoid confusion
I used the add-handler command of Yesod, and I found the sentences were too ambiguous. In order to avoid confusion, I just added some examples.

ps: I tried to write "getCommentR" instead of just "GET" and it was transformed in getcommentrCommentR :(.
2012-08-23 14:22:56 +03:00
Michael Snoyman
09016e9b7c Version bumps 2012-08-22 20:06:13 +03:00
Michael Snoyman
6b31b583f2 checkMMod 2012-08-22 20:05:34 +03:00
Michael Snoyman
34db07760a Merge branch 'master' of github.com:yesodweb/yesod 2012-08-22 20:04:11 +03:00
Michael Snoyman
a9b10ce0bc Merge pull request #410 from meteficha/runFakeHandler
New function runFakeHandler.
2012-08-21 21:06:55 -07:00
Felipe Lessa
20f51e38e2 yesod-core: Doc improvements for runFakeHandler. 2012-08-21 13:38:49 -03:00
Felipe Lessa
0346dab14c yesod-core: New function runFakeHandler. 2012-08-21 13:38:42 -03:00
Michael Snoyman
244eb88f36 Merge pull request #409 from meteficha/handlerToIO
yesod-core: New handlerToIO function.
2012-08-21 04:41:28 -07:00
Felipe Lessa
dc14783c81 yesod-core: On handlerToIO, avoid 'sourceList []'. 2012-08-20 13:13:46 -03:00
Felipe Lessa
786b5bc6e2 yesod-core: On handlerToIO's docs, avoid shadowing a name. 2012-08-20 13:09:43 -03:00
Felipe Lessa
60046bad96 yesod-core: New handlerToIO function. 2012-08-20 13:07:58 -03:00
Felipe Lessa
d94a95da3e Merge pull request #408 from meteficha/yesod-eventsource
New yesod-eventsource package.
2012-08-20 07:44:46 -07:00