Commit Graph

4741 Commits

Author SHA1 Message Date
Luite Stegeman
174ac36719 try to load persistbuildconfig, even if cabal library version is not the same 2012-10-16 02:25:11 +02:00
Luite Stegeman
6bec7d342a fix infinite loop in cabal-dev args 2012-10-16 01:40:22 +02:00
Luite Stegeman
639204b6f0 pass extra arguments to cabal, for devel and builc 2012-10-15 20:42:55 +02:00
Luite Stegeman
19d4834378 use fsnotify to watch folder 2012-10-15 19:17:08 +02:00
Luite Stegeman
77383f8002 small fixes and cleanups 2012-10-15 17:10:58 +02:00
Luite Stegeman
75b8dc4457 merge master, switch to optparse-applicative 2012-10-15 16:30:35 +02:00
Luite Stegeman
9577083abd update bounds so scaffold builds with GHC 7.6 2012-10-15 14:53:33 +03:00
Michael Snoyman
23da1c9cb2 New yesod-platform 2012-10-15 09:54:42 +02:00
Michael Snoyman
4a6bdc0db7 Version bumps 2012-10-15 08:58:01 +02:00
Michael Snoyman
ae23dee4ab Include level in source 2012-10-13 22:40:03 +02:00
Michael Snoyman
74cf1f77be Get rid of export lists 2012-10-12 11:19:45 +02:00
Michael Snoyman
47365910da Put main.hs in app, no dist hardcoding 2012-10-12 11:04:58 +02:00
Michael Snoyman
97d652a528 YesodSite -> YesodDispatch 2012-10-12 10:59:44 +02:00
Michael Snoyman
b36f6225c0 Initial travis config 2012-10-12 10:58:01 +02:00
Michael Snoyman
01eae3351a Avoid the annoying "y shadowed" GHC warnings 2012-10-12 10:22:18 +02:00
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