Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7661139
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T13:33:31+00:00 2026-05-31T13:33:31+00:00

There is a big difference – talking about transfer rate, object serialization – to

  • 0

There is a big difference – talking about transfer rate, object serialization – to send to WCF service an object or a list with one object?

In other words, if i have to transfer 1k of objects or 1k of list that has only one object.

Obs: This doubt is about a code that i have to create, if there is, i’ll create two methods, one that send an object and other to send a list (if there is a lot of objects to send). But if there isn’t, i’ll create only one method that sends a list (that can have one or more objects to send).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T13:33:31+00:00Added an answer on May 31, 2026 at 1:33 pm

    No there isn’t that big of a difference between sending a list of one object and one object. What you are thinking about is a micro optimization. I am positive there are several other places in code that you can speed up your application besides working about sending an object vs a list of objects.

    Here’s why. Think about what it takes to serialize a list. A list is really nothing more than an array which is just several of the same type of object. Sure there is some small amount of extra work the system has to do say, “Hey this is a list” rather than just one object, but it is unbelievably minor. You can test it yourself. The amount is unbelievably minor.

    Now here is where you need to think about what you are doing. The serialization isn’t the problem. It’s in the code. You can write code to handle one object quickly, but can that same code handle say 1000, 10,000 etc. When you allow a list to be transferred, and you haven’t set an upper limit (by say throwing an exception, not ideal, but it does work), you are opening up to the possibility that someone can pass in a really large amount data. This is where timeouts in code begin to have problems. You can’t ever assume that someone will only pass in say a list with 10 objects, so then the question is, “do you have to make it asynchronous?” That is a lot more work to get it right. So you should be asking yourself, is it worth creating a second method to handle the possibility of processing a large amount of data? Data serialization in .Net is really pretty good. Yes, there custom solutions which can make it faster, but it in many scenarios, it is the least of your worries.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there really a big difference between Eclipse 3.2 and 3.4? I am currently
Do you think there is a big difference in for...in and for loops? What
Are there any big differences a developer should care about?
Is there a master list of the Big-O notation for everything? Data structures, algorithms,
Performance wise, is there really a big difference between using: ArrayList.contains(o) vs foreach|iterator LinkedList.contains(o)
Is there a big difference between using the DirectX vector magnitude math function as
Is there a big difference in efficiency when using Point2D instead of double x
Is there a big difference (in terms of performance, browser implementation availability, server load
Possible Duplicate: Synchronization vs Lock I am wondering is there big difference in using
I know there's a big difference between the drawable-* folders, but what should I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.