xml handler in its own module

16 views
Skip to first unread message

Doug Tangren

unread,
Sep 30, 2014, 11:09:36 AM9/30/14
to dispatc...@googlegroups.com
I wanted to pitch the idea of factoring out the xml handler support for dispatch into it's own module with for the separate dependency needed in scala 2.11 [1]

The current support for xml in dispatch is 15 lines of code ( with spaces! ) [2]. The tax for those 15 lines will cost you about 641K according to maven central [3].

The cost for me as about 213ms

[info] [SUCCESSFUL ] org.scala-lang.modules#scala-xml_2.11;1.0.1!scala-xml_2.11.jar(bundle) (213ms).

Not much but considering I don't actually use it, it seems wasteful.

For those of you using dispatch for its xml support, do you feel strongly against removing this as an opt-in core dependency and moving it to its own module with a separate dependency on scala 2.11s new xml lib?

If there are no nay-sayers, I will volunteer to do so.


-Doug Tangren
http://lessis.me

pelagic

unread,
Sep 30, 2014, 6:20:14 PM9/30/14
to dispatc...@googlegroups.com
+1  I think this is a good move considering scala.xml will no longer be in scala 2.12

Nathan Hamblen

unread,
Oct 5, 2014, 10:07:03 AM10/5/14
to dispatc...@googlegroups.com
Yeah I think it makes sense. Ideally, there's a release or two where
it's deprecated in its current package and published artifact.
> --
> You received this message because you are subscribed to the Google
> Groups "Dispatch" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to dispatch-scal...@googlegroups.com
> <mailto:dispatch-scal...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages