Which language would be more suitable than the other for manipulating huge graphs, F# or C#? [closed]
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.
精彩评论