开发者

Which language would be more suitable than the other for manipulating huge graphs, F# or C#? [closed]

开发者 https://www.devze.com 2023-02-14 11:46 出处:网络
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will likely solicit debate, a
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 11 years ago.

Are the开发者_运维百科ir advantages to either C# or F# that would make that language more suitable for manipulating huge graphs?


Neither.

Both C# and F# are excellent languages that poses the capabilities to examine large data structures in an efficient manner. Virtually any solution coded up in one language could be coded up in the other. True there would be some syntactic differences and the occasional language construct which doesn't port cleanly between the two. But neither language has an inherent advantage in this area.

Instead of focusing on the language here I would focus on the algorithm. That much more than the language will determine the efficiency of your program.


Both of these will compile to the same set of MSIL instructions. There may be some semantic difference at the IL level between the cleanest F# algorithm and the cleanest C# algorithm, but it wouldn't be significant.

As JaredPar said, both are equally capable of efficiently traversing large data graphs.

0

精彩评论

暂无评论...
验证码 换一张
取 消