Results 1 to 4 of 4

Thread: Possible to generate slice code from .net dlls?

  1. #1
    olem is offline Registered User
    Name: Ole Marius
    Organization: If Insurance
    Project: Insurance software
    Join Date
    Jun 2009
    Posts
    2

    Possible to generate slice code from .net dlls?

    Hi,

    I'm currently evaluating Ice as a replacement for WCF as our communication middleware. To be able to get some meaningful data for comparison, I wanted to see how ICE would perform on some of our most complex data structures.

    My first attempt was to use the new native serialization option. But as this uses the .NET BinaryFormatter the performance isn't very good. I assume a type defined in the slice language would use another serialization method that would have far better performance. My next approach is then to get the "proper" ICE serialization of our types, but this requires a complete set of .ice definitions which would be very time consuming to create.

    Is it possible to generate these .ice files from .net source or dlls? Or would we have to manually write slice code for all our types?

  2. #2
    matthew's Avatar
    matthew is offline ZeroC Staff
    Name: Matthew Newhook
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Feb 2003
    Location
    NL, Canada
    Posts
    1,458
    No, that isn't possible. Furthermore, history has shown us that such tools don't work very well (see the CORBA java to IDL mapping for an example).

    What type of data are you encoding? Is the data inherently big and complex, and so you'd expect the encoding to be slow?

  3. #3
    olem is offline Registered User
    Name: Ole Marius
    Organization: If Insurance
    Project: Insurance software
    Join Date
    Jun 2009
    Posts
    2
    Hi,

    I am trying to encode the complete graph of one of one of our most complex types. (The "policy" in our insurance model). This is by nature large and complex with objects of many other types as part of the object graph.

    I'll try to extract a smaller part of it and create the necessary slice definitions.

    Thanks for the quick response.

  4. #4
    matthew's Avatar
    matthew is offline ZeroC Staff
    Name: Matthew Newhook
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Feb 2003
    Location
    NL, Canada
    Posts
    1,458
    Keep in mind that with Slice this may not be the right approach. Since Ice has much more sophisticated object model than WCF you might consider a architecture that doesn't have large graphs of objects moving around the system. Although the performance of the Ice encoding is very fast, if you translate your system directly without taking advantage of the richer object model, you might not get the performance increase you anticipate.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 04-25-2010, 06:06 PM
  2. Visual Studio Plugin, Auto Generate code
    By Nisd in forum Comments
    Replies: 1
    Last Post: 07-31-2009, 11:34 AM
  3. Replies: 3
    Last Post: 10-18-2006, 10:24 AM
  4. Code convention for .Net Ice libraries
    By vermorel in forum Comments
    Replies: 2
    Last Post: 12-08-2005, 12:58 AM
  5. Replies: 3
    Last Post: 08-12-2004, 08:57 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •